photo of the author

February 12, 2020

How to get a shell in local @Docker container:

docker run -it –entrypoint /bin/sh repository:tag

If the image has Bash, you can also substitute /bin/bash.