Linux command
docker-pull 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Pull an image
docker pull [image]
Pull specific tag
docker pull [image]:[tag]
Pull all tags
docker pull -a [image]
Pull from private registry
docker pull [registry.example.com/image]:[tag]
Pull by digest
docker pull [image]@sha256:[digest]
Pull specific platform
docker pull --platform linux/arm64 [image]
说明
docker pull downloads an image from a registry. Pulls from Docker Hub by default. If no tag is specified, pulls the latest tag. Images are downloaded in layers, and Docker caches these layers to optimize subsequent pulls. Supports multi-platform images with automatic platform detection.
参数
- -a, --all-tags
- Download all tagged images in the repository.
- --disable-content-trust
- Skip image verification.
- --platform _string_
- Set platform (e.g., linux/amd64, linux/arm64).
- -q, --quiet
- Suppress verbose output.
FAQ
What is the docker-pull command used for?
docker pull downloads an image from a registry. Pulls from Docker Hub by default. If no tag is specified, pulls the latest tag. Images are downloaded in layers, and Docker caches these layers to optimize subsequent pulls. Supports multi-platform images with automatic platform detection.
How do I run a basic docker-pull example?
Run `docker pull [image]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all-tags do in docker-pull?
Download all tagged images in the repository.