docker-clean

1.0.3 • Public • Published

docker-clean

Clean up unused docker containers and images

npm install docker-clean

Or to install the command line tool

npm install -g docker-clean
docker-clean --help

Usage

var clean = require('docker-clean')
 
clean(function(err, result) {
  console.log('Cleaned up %d containers and %d images', result.containers, result.images)
})
 
// or to force remove running containers as well
 
clean({force: true}, function(err) {
  ...
})

Other options include

{
  host: 'optional-docker-host', // override $DOCKER_HOST
  images: false, // do not remove images
  containers: false, // do not remove containers
  force: true // also remove running containers
}

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    36
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    36
  • 1.0.2
    0
  • 1.0.1
    1
  • 1.0.0
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i docker-clean

Weekly Downloads

39

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mafintosh