Many thanks to those who take time to respond.
If you use docker directly, Brian is right; sudo docker rm -f container
enough.
My problem was mainly that I use a puppet to deploy docker images and launch containers. I use this module and create entries in / etc / init for the upstart process manager.
I think my problem is that this is some kind of incompatibility between the process manager and the docker.
In this situation, to stop the container, simply sudo stop docker-container
.
More information on managing docker container launch can be found on the docker website.
source share