Docker Documentation References:
The purpose of this kata is to familarize yourself with the process of removing a container from your local docker installation.
In this exercise we will delete the most recent container we created in the previous exercises.
Command
docker ps -a
Output
thought:DockerKata rich$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cfbed98f339d nginx:alpine "nginx -g 'daemon ..." 5 minutes ago Exited (0) 5 minutes ago goofy_jepsen
Because docker generates the name of the container randomly, your container will most likely not be
goofy_jepsen
. Later we will use names to ensure consistency.
Command
docker rm goofy_jepsen
Output
thought:DockerKata rich$ docker rm goofy_jepsen
goofy_jepsen
Command
docker ps -a
Note that goofy_jepsen
no longer exists in the listing.