From 8c6d073045e82c45a764304c9052225559bf45d3 Mon Sep 17 00:00:00 2001 From: Joel Colledge Date: Mon, 22 Nov 2021 11:29:01 +0100 Subject: [PATCH] container: increase copy timeout The implementation of this involves file IO and running an external process, so it can take some time on a system under heavy load. --- internal/virter/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/virter/docker.go b/internal/virter/docker.go index 0fd7243..988747b 100644 --- a/internal/virter/docker.go +++ b/internal/virter/docker.go @@ -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 {