3
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 1 year has passed since last update.

devcontainer作成時、貯まるdocker関連ファイルを全削除したい時

Posted at

初心者向けです



devcontainerで環境構築していてトライアンドエラーしていると、docker関連のファイルが貯まるので
全削除に使うコマンド

注意

全部消えるので注意してください。

WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all volumes not used by at least one container
  - all images without at least one container associated to them
  - all build cache



まずは使用量

docker system df



全削除

docker system prune --all --volumes



たまに残る時

docker rm -f `docker ps -a -q`
docker system prune --all --volumes
3
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
3
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?