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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.