Docker container exits immediately

Issue

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?

Solution

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)

Answered By – Céline Aussourd

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published