fix: Remove volume with same name as the container again (#1203)
* Update run_context.go * .
This commit is contained in:
parent
859445fb94
commit
28f5b37fd1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue