Socket
Book a DemoInstallSign in
Socket

docker-clean

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docker-clean

Clean up unused docker containers and images

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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

Keywords

docker

FAQs

Package last updated on 23 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts