How to start a stopped Docker container with a different command?

I would like to start a stopped Docker container with a different command, as the default command crashes – meaning I can’t start the container and then use ‘docker exec’.

Basically I would like to start a shell so I can inspect the contents of the container.

Luckily I created the container with the -it option!

11 Answers
11

Leave a Comment