Shipping an image

We usually ship Docker images via a Docker registry. The public registry hosted by Docker Inc. is called Docker Hub. To ship a Docker image to a registry, we use the docker push command. When we start a container, its image will be automatically checked and downloaded to the host before running. The process of downloading can be explicitly done using the docker pull command. The following diagram illustrates the push/pull behavior among different environments and registries:

Figure 2.4: Push and pull image workflow

In the previous diagram, developers pull images from the Docker public registry (Docker Hub) then push and pull ...

Get Docker for Serverless Applications now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.