There are times when you want to connect to docker container to evaluate issues and/or debug something, yet many containers have an ENTRYPOINT [<script>] that causes the container to close immediately making impossible to connect with:

docker exec -it <container> /bash

Thankfully this can be by-passed with the –entrypoint

docker run -it --entrypoint bash earnhardt/vir_report:version1.0
Use –entrypoint bash to debug docker container

Tagging a docker image

Leave a Reply