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
docker cp c:\path\to\local\file container_name:/path/to/target/dir/

Leave a Reply

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny