Merge pull request #3533 from crosbymichael/run-rm-remove-volumes
Remove volumes on docker run -rm Upstream-commit: fc14e81bf945afe192b7e31991900fe27f991e3b Component: engine
This commit is contained in:
@ -2138,7 +2138,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
|
||||
if _, status, err = getExitCode(cli, runResult.ID); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, _, err := cli.call("DELETE", "/containers/"+runResult.ID, nil); err != nil {
|
||||
if _, _, err := cli.call("DELETE", "/containers/"+runResult.ID+"?v=1", nil); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user