命令
docker push
描述
Push an image or a repository to a registry
推送镜像
用法
1
| docker push [OPTIONS] NAME[:TAG]
|
选项
1 2 3 4
| Options: --all-tags , -a Push all tagged images in the repository --disable-content-trust 跳过镜像验证,默认为true --quiet , -q Suppress verbose output
|
注意
无
示例
1 2 3 4 5 6 7 8 9 10
| $ docker container commit c16378f943fe rhel-httpd:latest $ docker image tag rhel-httpd:latest myregistry.local:5000/myadmin/rhel-httpd:latest $ docker image push myregistry.local:5000/myadmin/rhel-httpd:latest $ docker image ls
$ docker image tag myimage myregistry.local:5000/myname/myimage:latest $ docker image tag myimage myregistry.local:5000/myname/myimage:v1.0.1 $ docker image tag myimage myregistry.local:5000/myname/myimage:v1.0 $ docker image tag myimage myregistry.local:5000/myname/myimage:v1 $ docker image push --all-tags myregistry.local:5000/myname/myimage
|