免責聲明

Disclaimer (免責聲明)
繼續閱覽代表您接受以上的免責聲明.
To continue reading means you accept the above disclaimer.

2015年3月18日 星期三

docker, how to rename image


//=== http://stackoverflow.com/questions/25211198/docker-how-to-change-repository-name-or-rename-image
"""...
docker tag server:latest myname/server:latest

or

docker tag d583c3ac45fd myname/server:latest

Tags are just human-readable aliases for the full image name (d583c3ac45fd...).
So you can have as many of them associated with the same image as you like.
If you don't like the old name you can remove it after you've retagged it ...


..."""


$ docker tag old-imgname new-imgname
or
$ docker tag img-id new-imgname

# rm the old imgname when not needed
$ docker rmi old-imgname


沒有留言:

張貼留言