Skip to content

Commit

Permalink
container: increase copy timeout
Browse files Browse the repository at this point in the history
The implementation of this involves file IO and running an external
process, so it can take some time on a system under heavy load.
  • Loading branch information
JoelColledge committed Nov 22, 2021
1 parent 58a741b commit 8c6d073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/virter/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func containerRun(ctx context.Context, containerProvider containerapi.ContainerP
// container. In these cases, the container itself is still valid.
if copyStep != nil {
// Use a fresh Context here because ctx may have been canceled
copyCtx, copyCancel := context.WithTimeout(context.Background(), 5*time.Second)
copyCtx, copyCancel := context.WithTimeout(context.Background(), 20*time.Second)
defer copyCancel()
err = containerCopy(copyCtx, containerProvider, containerID, copyStep)
if err != nil {
Expand Down

0 comments on commit 8c6d073

Please sign in to comment.