From 14acf6883db8069a10a727ed26f7ef801f460353 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Thu, 9 Jan 2014 09:58:40 -0800 Subject: [PATCH] Remove volumes on docker run -rm If we don't care about the container then we don't care about any volumes created with the run of that container Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 10d3697c19..fd231abeea 100644 --- a/commands.go +++ b/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 {