67
64

More than 5 years have passed since last update.

Dockerイメージの名前を変更する

Last updated at Posted at 2015-02-19

docker tag 追記:2015/02/20

コメントにて教えていただいたtagコマンドで1発でした。

docker tag $(ubuntu_imageid) umintu

  1. tagコマンドでumintuイメージを作成
  2. ubuntuイメージを削除
1. docker tag $(ubuntu_imageid) umintu
2. docker rmi ubuntu

イメージ ubuntuumintuにリネーム

  1. ubuntuイメージからtempコンテナを起動
  2. commitで、umintuイメージを作成
  3. tempコンテナを停止
  4. tempコンテナを削除
  5. ubuntuイメージを削除
1. docker run -d --name="temp" ubuntu
2. docker commit temp umintu
3. docker stop temp
4. docker rm temp
5. docker rmi ubuntu

docker imagesすれば、新しいumintuだけになっているはず。

67
64
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
67
64