Home>Article>Operation and Maintenance> When does docker use the pull command?

When does docker use the pull command?

WBOY
WBOY Original
2022-02-07 11:25:22 2947browse

In docker, the pull command is used when pulling or updating a specified image from the image warehouse; this command can pull all tagged images by setting different parameters, or ignore the verification of the image. The syntax is " docker pull [OPTIONS] NAME".

When does docker use the pull command?

The operating environment of this tutorial: linux7.3 system, docker-1.13.1 version, Dell G3 computer.

When docker uses the pull command

docker pull: pull or update the specified image from the image warehouse

Syntax

docker pull [OPTIONS] NAME[:TAG|@DIGEST]

OPTIONS Description:

  • -a: Pull all tagged images

  • --disable-content-trust: Ignore the verification of the image, enabled by default

Example

Download the latest version of java image from Docker Hub.

docker pull java

Download all images whose REPOSITORY is java from Docker Hub.

docker pull -a java

Recommended learning: "docker video tutorial"

The above is the detailed content of When does docker use the pull command?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn