Sunday, 15 July 2012

Add remote tag to a docker image -



Add remote tag to a docker image -

on private registry (myregistry.com), have image tagged 'v1.2.3'. force by:

docker force myregistry.com/myimage:v1.2.3

if want associate tag, 'staging', , force tag registry, can:

docker tag myregistry.com/myimage:v1.2.3 myregistry.com/myimage:staging docker force myregistry.com/myimage:staging

though works, sec docker push still runs through each image, attempting force (albeit skipping upload). there improve way add together remote tag?

the way you've stated, docker tag ...; docker force ... best way add together tag image , share it.

in specific illustration you've given, both tags in same repo (myregistry.com/myimage). in case can docker force myregistry.com/myimage , default docker daemon force all tags repo @ same time, saving iteration on layers shared layers.

you can utilize same process (docker tag ...; docker force ...) tag images between repositories well, e.g.

docker tag myregistry.com/myimage:v1.2.3 otherregistry.com/theirimage:v2 docker force otherregistry.com/theirimage

docker

No comments:

Post a Comment