mirror of https://github.com/docker/docs.git
parent
3de3719290
commit
bcfd6a653b
|
@ -58,7 +58,7 @@ func (daemon *Daemon) ContainerDestroy(job *engine.Job) engine.Status {
|
||||||
return job.Errorf("Could not kill running container, cannot remove - %v", err)
|
return job.Errorf("Could not kill running container, cannot remove - %v", err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return job.Errorf("You cannot remove a running container. Stop the container before attempting removal or use -s or -k")
|
return job.Errorf("You cannot remove a running container. Stop the container before attempting removal or use -f")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := daemon.Destroy(container); err != nil {
|
if err := daemon.Destroy(container); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue