Docker clean

1.Cleanup exited processes:

docker rm $(docker ps -q -f status=exited)

3.Cleanup dangling volumes:

docker volume rm $(docker volume ls -qf dangling=true)

3.Cleanup dangling images:

docker rmi $(docker images –filter “dangling=true” -q –no-trunc)

more methods go to below link ↓

More Ref:

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~