Browse Source

Merge pull request #3533 from crosbymichael/run-rm-remove-volumes

Remove volumes on docker run -rm
Guillaume J. Charmes 11 năm trước cách đây
mục cha
commit
fc14e81bf9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -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 {