Shell into a Docker container that doesn't start

#linux #docker

Got a container that's broken, but you cannot figure out? Commit it to get shell access in the last successful docker build step, allowing you to inspect the situation more clearly:

docker commit <container_id> broken-container
docker run -it broken-container bash

Unless specified otherwise, this work is licensed under a Creative Commons BY-NC-SA 4.0.