linuxdockerlxc

Docker container exits immediately


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)