Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker tag and push

# 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
Source by docs.docker.com #
 
PREVIOUS NEXT
Tagged: #docker #tag #push
ADD COMMENT
Topic
Name
2+2 =