神刀安全网

Docker-Clean: A script that cleans docker containers, images, and volumes

Docker-Clean: A script that cleans docker containers, images, and volumes Docker-Clean: A script that cleans docker containers, images, and volumes

Docker-Clean

A simple Shell script to clean up the Docker Daemon.

Requirements

In order to use the volume capabilities, it is required that the Docker Daemon is at least version 1.9+

Install

curl -s https://raw.githubusercontent.com/ZZROTDesign/docker-clean/master/docker-clean | sudo tee /usr/local/bin/docker-clean > /dev/null && / sudo chmod +x /usr/local/bin/docker-clean 

Homebrew Install

brew tap zzrotdesign/tap brew install docker-clean 

Usage

For a more in depth look at the usage and commands run without browsing the script itself check out ourUSAGE.md.

docker-clean [optional flags below] 

Default without arguments deletes stopped containers, dangling volumes, and untagged images.

Options:  -h or --help        Opens this help menu -v or --version     Prints the current docker-clean version  -a or --all         Stops and removes all Containers, Images, and Restarts docker -c or --containers  Stops and removes Stopped and Running Containers -i or --images      Stops and removes all Containers and Images -s or --stop        Stops all running Containers  -l or --log         Adding this as an additional flag will list all                     image, volume, and container deleting output 

Contributing to Docker-Clean

Team members

Don’t hesitate to get in contact with either one of us with problems, questions, etc.

Check out our blog post on why we put this script together.

Adding new features

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am ‘Add some feature’
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request 😀

Don’t get discouraged! We estimate that the response time from the maintainers is around: 24 hours.

License

The code is available under theMIT License.

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Docker-Clean: A script that cleans docker containers, images, and volumes

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址