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

