📜  docker tag 和 push - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:05.856000             🧑  作者: Mango

代码示例1
# Using a single tag
docker image tag myimage:latest registry-host:5000/myname/myimage:latest
docker image push registry-host:5000/myname/myimage:latest

# Using multiple tags at once
docker image tag myimage registry-host:5000/myname/myimage:latest
docker image tag myimage registry-host:5000/myname/myimage:v1.0.1
docker image tag myimage registry-host:5000/myname/myimage:v1.0
docker image tag myimage registry-host:5000/myname/myimage:v1

docker image push --all-tags registry-host:5000/myname/myimage