← 返回命令列表

Linux command

docker-image-pull 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Pull an image

docker image pull [image]

Pull specific tag

docker image pull [image]:[tag]

Pull all tags

docker image pull -a [image]

Pull by digest

docker image pull [image]@[sha256:digest]

Pull for a specific platform

docker image pull --platform [linux/arm64] [image]:[tag]

Pull from specific registry

docker image pull [registry.example.com/image]:[tag]

说明

docker image pull downloads a Docker image or repository from a registry to the local Docker daemon. When no registry is specified, Docker Hub serves as the default source. If no tag is provided, the latest tag is assumed. The pull operation downloads image layers in parallel for efficiency. If some layers already exist locally from other images, Docker reuses them through its content-addressable storage system, minimizing bandwidth and storage requirements. Images can be pulled by tag for version-specific deployments or by SHA256 digest for immutable, verifiable image references. The --platform flag enables pulling multi-architecture images for cross-platform development and deployment scenarios.

参数

-a, --all-tags
Download all tagged images.
--disable-content-trust
Skip image verification.
--platform _string_
Set platform (e.g., linux/amd64).
-q, --quiet
Suppress verbose output.

FAQ

What is the docker-image-pull command used for?

docker image pull downloads a Docker image or repository from a registry to the local Docker daemon. When no registry is specified, Docker Hub serves as the default source. If no tag is provided, the latest tag is assumed. The pull operation downloads image layers in parallel for efficiency. If some layers already exist locally from other images, Docker reuses them through its content-addressable storage system, minimizing bandwidth and storage requirements. Images can be pulled by tag for version-specific deployments or by SHA256 digest for immutable, verifiable image references. The --platform flag enables pulling multi-architecture images for cross-platform development and deployment scenarios.

How do I run a basic docker-image-pull example?

Run `docker image 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-image-pull?

Download all tagged images.