Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ajohnstone
Created January 27, 2015 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajohnstone/e3a666e58b71c14f35a7 to your computer and use it in GitHub Desktop.
Save ajohnstone/e3a666e58b71c14f35a7 to your computer and use it in GitHub Desktop.
docker is easily broken, e.g. its process management becomes easily out of sync.
I.e create container, kill process 1, then exit.
CID=$(docker run -it -d ubuntu:latest bash);
docker exec -i -t $CID kill 1;
docker ps
docker rm -f $CID;
Error response from daemon: Could not kill running container, cannot remove - no such process
FATA[0000] Error: failed to remove one or more containers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment