From 28f5b37fd1941e00e77f33e3964011f83789c45c Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Tue, 7 Jun 2022 16:10:43 +0200 Subject: [PATCH] fix: Remove volume with same name as the container again (#1203) * Update run_context.go * . --- pkg/runner/run_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 001f97a..3e1ee2c 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -218,6 +218,7 @@ func (rc *RunContext) stopJobContainer() common.Executor { return func(ctx context.Context) error { if rc.JobContainer != nil && !rc.Config.ReuseContainers { return rc.JobContainer.Remove(). + Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName(), false)). Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName()+"-env", false))(ctx) } return nil