0
1

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 3 years have passed since last update.

stop all docker container

Last updated at Posted at 2021-11-01
docker stop $(docker ps -q)

一括コンテナ削除

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

一括イメージ削除

docker rmi $(docker images -q)
Docker イメージ削除 'image has dependent child images' への対処
docker rmi -f $(docker images -q)

ALL

docker stop $(docker ps -q) && docker rm $(docker ps -q -a) && docker rmi $(docker images -q)
未使用のvolumeを削除する場合は、以下となります。

docker volume prune

強制削除

docker volume prune -f
docker volume prune

強制削除

docker volume prune -f
未使用のnetworkを削除する場合は、以下となります。

docker network prune
一括でimage、volume、networkを削除する場合は、以下となります。

docker system prune
Build Cacheを削除する場合は、 以下となります

docker builder prune
Build Cache容量確認

docker system df

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?