1.docker pull介绍
docker pull命令是用于从镜像仓库中拉取指定镜像。如果没有指定镜像标签,那么docker默认使用:latest标签
2.docker pull用法
docker pull [参数] NAME[:TAG|@DIGEST]
[root@centos79 ~]# docker pull --helpUsage: docker pull [OPTIONS] NAME[:TAG|@DIGEST]Download an image from a registryAliases:docker image pull, docker pullOptions:-a, --all-tags Download all tagged images in the repository--disable-content-trust Skip image verification (default true)--platform string Set platform if server is multi-platform capable-q, --quiet Suppress verbose output
[root@centos79 ~]#
3.实例
3.1.拉取最新版本镜像
命令:
docker pull nginx
[root@centos79 ~]# docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
a2abf6c4d29d: Pull complete
a9edb18cadd1: Pull complete
589b7251471a: Pull complete
186b1aaa4aa6: Pull co