1.6docker pull
1.6.1 描述
从存储库中拉取(下载)镜像
1.6.2 用法
[OPTIONS]
:可选项
NAME
:镜像名称
TAG
:镜像版本
DIGEST
:镜像摘要
docker pull [OPTIONS] NAME[:TAG|@DIGEST]
1.6.3 参数说明
名称(简写) | 默认 | 描述 |
---|---|---|
--all-tags , -a | 下载存储库中所有标记的图像 | |
--disable-content-trust | true | 跳过图像验证 |
--platform | 如果服务器支持多平台,则设置平台 | |
--quiet , -q | 禁止详细输出 |
1.6.4 命令及示例
1.6.4.1 从Docker Hub
拉取镜像
下载一个指定的镜像或者一组镜像;
若未提供标签,则Docker Engine
使用该:latest
标签作为默认标签,即下载最新版本。
可以在官网搜索镜像查看镜像版本信息:https://hub.docker.com/
下载centos
docker pull centos
[root@VM-0-14-centos /]# docker pull centos
Using default tag: latest
latest: Pulling from library/centos
Digest: sha256:5528e8b1b1719d34604c87e11dcd1c0a20bedf46e83b5632cdeac91b8c04efc1
Status: Image is up to date for centos:latest
docker.io/library/centos:latest
[root@VM-0-14-centos /]#
查看下载的镜像
docker images
[root@VM-0-14-centos /]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos latest 300e315adb2f 2 months ago 209MB
hello-world latest bf756fb1ae65 13 months ago 13.3kB
[root@VM-0-14-centos /]#
Docker常用命令使用详解(
docker run
)(四)待完善