- Hands-On Docker for Microservices with Python
- Jaime Buelta
- 195字
- 2021-06-24 12:35:56
Obtaining public images from Docker Hub
The default registry is Docker Hub. This is configured by default, and it serves as the main source of public images. You can access it freely in https://hub.docker.com/ and search for available images to base your images on:
Each image has information about the way to use it and the tags that are available. You don't need to download the images independently, just to use the name of the image or run a docker pull command. Docker will automatically pull from Docker Hub if no other registry is specified:
The name of the image is also the one to use in our FROM command in Dockerfiles.
Docker is a fantastic way of distributing a tool. It's very common right now for an open source tool to have an official image in Docker Hub that can be downloaded and started in a standalone model, standardizing the access.
This can be used either for a quick demo, for something such as Ghost— https://hub.docker.com/_/ghost (a blogging platform), or a Redis ( https://hub.docker.com/_/redis) instance to act as cache with minimal work. Try to run the Ghost example locally.
This can be used either for a quick demo, for something such as Ghost— https://hub.docker.com/_/ghost (a blogging platform), or a Redis ( https://hub.docker.com/_/redis) instance to act as cache with minimal work. Try to run the Ghost example locally.