When does docker use the pull command?

WBOY
Release: 2022-02-07 11:25:22
Original
3009 people have browsed it

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]
Copy after login

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
Copy after login

Download all images whose REPOSITORY is java from Docker Hub.

docker pull -a java
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template