zq@ubuntu:~$ docker pull -h
Flag shorthand -h has been deprecated, please use --help
Usage: docker pull [OPTIONS] NAME[:TAG|@DIGEST]
Pull an image or a repository from a registry
Options:
-a, --all-tags Download all tagged images in the repository
--disable-content-trust Skip image verification (default true)
在/etc/docker/daemon.json文件(没有请自行创建)添加如下配置:
"registry-mirrors": ["https://registry.docker-cn.com"] # registry.docker-cn.com是国内的镜像网站
如果只是临时的从其他仓库下载镜像,可以在docker pull的时候指定镜像的全路径
docker pull your-registry-server/your/image/path
网友评论