liveBook · Manning

Docker Hub

As explained in Learn Docker in a Month of Lunches, Second Edition

Docker Hub is a public registry and collaboration service for sharing container images and other containerized software.

Docker Hub is a public registry and collaboration service for container images. Docker Engine checks it by default when an image is not already available locally, so running a container can automatically download its image. section 3.1 section 5.1

Use Docker Hub to:

  • Pull published images explicitly with `docker image pull`, or let `docker container run` download missing images automatically. section 3.1
  • Find images through repositories and the Docker Hub web interface. section 3.1 section 5.1
  • Identify an exact image with a reference such as `docker.io/diamol/golang:2e`; omitted registry and tag values default to Docker Hub and `latest`. section 5.1
  • Share images through public repositories; pushing requires membership in the owning organization, while private registries can be selected by including their domain. section 5.1

Pull and run an image

Pull the web-ping image with `docker image pull diamol/ch03-web-ping:2e`. Then run it in the background with `docker container run -d --name web-ping diamol/ch03-web-ping:2e` and inspect its activity using `docker container logs web-ping`. The downloaded image contains the Node.js runtime and application code, assembled from multiple image layers. section 3.1

docker image pull diamol/ch03-web-ping:2e

Use the runnable pull command to verify Docker Hub access and download an image. section 3.1

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains pulling, repositories, image references, defaults, permissions, and layered storage, but not registry administration.
Examples
Uses the diamol/ch03-web-ping:2e image, pull and run commands, container logs, and a Docker Hub repository page.
What it assumes
Assumes basic Docker container usage and introduces registries, repositories, image references, tags, and layers.
What you can do after
Operate Docker Hub by pulling exact image references, running containers, inspecting logs, and selecting alternate registries.
How it connects
Connects Docker Hub with container images, Docker Engine, registries, repositories, image references, image tags, and image layers.

Also explained in

Compare how 2 books explain Docker Hub →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.