Mastodon hachyterm.io

Today I learned about how to use Docker exit codes and how to debug a container with a custom entrypoint.

Inspect the container by container id:

docker inspect <container-id> --format='{{.State.ExitCode}}'

Find a list of exit codes here.

Go inside the container, so you can further debug:

docker run -it --entrypoint /bin/bash <container-id> -s

Further Reading