GithubHelp home page GithubHelp logo

suixuan / docker-wipe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cars10/docker-wipe

0.0 0.0 0.0 11 KB

Script to delete your local docker containers/images/volumes

License: MIT License

Shell 100.00%

docker-wipe's Introduction

docker-wipe.sh

This is a script to cleanup your local docker installation - meaning your data, not the actual installation. It provides functions to delete all images, containers, networks, volumes (use with care!) or all of it.

Deprecated

Hint: You can now do the same thing with docker natively, this script is no longer needed:

docker stop $(docker ps -aq) # stop all containers
docker system prune --all

Usage

./docker-wipe.sh {containers|images|networks|volumes|all} {parameter}
Commands:
  containers   - delete all containers
  images       - delete all images
  volumes      - delete all volumes
  networks     - delete all networks
  all          - delete all containers, images, networks and volumes
Parameter:
  y - pass this to disable confirmation message and automatically destroy

Contributing

  • Fork ( https://github.com/cars10/docker-wipe/fork )
  • 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)
  • Create a new pull request

License

MIT

docker-wipe's People

Contributors

cars10 avatar knpwrs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.