Docker container exits immediately

Ananth Ravi picture Ananth Ravi · Sep 25, 2014 · Viewed 45.2k times · Source

I'm using docker v1.2 and having some issues starting a container. The container exits after the "docker run". What's the best way to troubleshoot such issues? Also are there major differences in running containers under AUFS and BTRFS?

Answer

Céline Aussourd picture Céline Aussourd · Sep 26, 2014

You can run docker logs <container_name> to retrieve the logs

(if you don't know what was the container name, you can run docker ps -a to display all the containers)