Attaching to Running Containers

Learn to attach your shell to a running container.

You can attach your shell to the terminal of a running container with the docker container exec command. As the container from the previous steps is still running, let’s make a new connection to it.

Linux example

This example references a container called “vigilant_borg.” The name of your container will be different, so remember to substitute vigilant_borg with the name or ID of the container running on your Docker host.

Get hands-on with 1000+ tech skills courses.