//=== 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
2015年3月18日 星期三
docker, how to rename image
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言