Difficulty: Beginner
Estimated Time: 10 minutes

In this scenario we learn to use basic Docker commands, such as docker pull, docker run or docker images.

In this scenario we learned, how to pull Docker images, list them and create containers based on them.

Docker container

Step 1 of 5

Image pull (1)

In this step Docker is up and running. A first image has been already pulled. You may verify this by issuing the command:

docker images

Along other images the busybox image should be displayed.

An image name consists of several parts:

  • image name: here busybox
  • tag: specifies a special version, defaults to latest

Now we‘re going to pull a Nginx image from Dockerhub. Issue the command:

docker pull nginx

and see, whether the image has been stored locally:

docker images

What happened? The Docker daemon contacted the default registry (Dockerhub) and checked, whether an image exists with the name nginx. We didn‘t specify a special image version, thus Docker requested to pull the latest tag.