2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Docker 備忘録

Last updated at Posted at 2016-01-15

#未来の自分へ

停止している全コンテナを削除

$ sudo docker rm $(sudo docker ps -a -q)

全イメージを一気に削除

$ sudo docker rmi $(sudo docker images -q)

不要イメージを一気に削除

$ sudo docker rmi $(sudo docker images | awk '/^<none>/ { print $3 }')

$ sudo docker rmi $(docker images -f dangling=true -q)

コンテナ起動

$ sudo docker run --name イメージ名 -i -t タグ名

$ sudo docker run -i -t イメージ名:タグ名

コミットして新イメージを作成

$ sudo docker commit コンテナID イメージ名:タグ名
2
2
0

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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?