LoginSignup
0
0

More than 5 years have passed since last update.

DockerプロセスとDockerイメージを掃除するワンライナー

Last updated at Posted at 2018-09-28

Dockerを使っててひとつひとつ消すのが面倒だったので

Dockerプロセス全員殺すマン

docker ps -a | awk '{print $1}' | tail -n +2 | xargs docker rm

Dockerイメージの最終行以外を消すマン

docker images | awk '{print $3}' | sed '$d' | xargs docker rmi

※間違えているかもしれないのでご利用は計画的に

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