Merge pull request #3533 from crosbymichael/run-rm-remove-volumes
Remove volumes on docker run -rm
This commit is contained in:
commit
fc14e81bf9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue