Start a Docker Container with Bash Shell

In this blog post, I will show you how to start a Linux Docker container into Bash Shell.

By default, not all Linux container images start with access to the Bash shell.

Using the simple line below, my container will start with Bash Shell.

docker container run -it  centos /bin/sh

This line is very useful when the container does not start with Bash.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.