How do I get into a Docker container’s shell? – Stack Overflow

Contra: Creates a new process with own session and own environment-vars Option 2: Attach to the already running bash (better) Sample start: docker attach –detach-keys ctrl-d Quit: use keys ctrl and d Pro: Joins the exact same running bash which is in the container. You have same the session and same environment-vars.

Read More