Managing Containers
Explore how to start Docker containers from images using the docker run command with interactive shell access. Learn to check running processes inside containers, exit without stopping containers, and verify container status, gaining essential skills in container management.
We'll cover the following...
We'll cover the following...
Start a container from the image
If you’ve been following along, you’ll have a copy of the ubuntu:latest image on your Docker host, and you can use the docker run command to start a container from it.
Run the following docker run command to start a new container called test from the ubuntu:latest image.
Notice how your shell prompt has changed. This is because the container is already running, and your shell is attached to it.