docker pull downloads the image from Docker Hub (https://hub.docker.com/) by default.
We can first use the docker search command to find the image in Docker Hub.
Syntax
docker search [OPTIONS] TERM
OPTIONS Description:
--automated: Only list automated build type images;
--no-trunc: Display complete Image description;
-s: List the images whose collection number is not less than the specified value.
Then use the docker pull command to download the image.
docker pull: Pull or update the specified image from the mirror warehouse
Syntax
docker pull [OPTIONS] NAME[:TAG|@DIGEST]
OPTIONS Description:
-a: Pull all tagged images
--disable-content-trust: Ignore the verification of the image and enable it by default
For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.
The above is the detailed content of Where does docker pull the image from?. For more information, please follow other related articles on the PHP Chinese website!