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 {
|
return func(ctx context.Context) error {
|
||||||
if rc.JobContainer != nil && !rc.Config.ReuseContainers {
|
if rc.JobContainer != nil && !rc.Config.ReuseContainers {
|
||||||
return rc.JobContainer.Remove().
|
return rc.JobContainer.Remove().
|
||||||
|
Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName(), false)).
|
||||||
Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName()+"-env", false))(ctx)
|
Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName()+"-env", false))(ctx)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue