Skip to content

Instantly share code, notes, and snippets.

@AliYmn
Created August 4, 2017 21:52
Show Gist options
  • Save AliYmn/4e91543febd2347484bb456f4bbe0d56 to your computer and use it in GitHub Desktop.
Save AliYmn/4e91543febd2347484bb456f4bbe0d56 to your computer and use it in GitHub Desktop.
Docker all Remove ps and images
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@AliYmn
Copy link
Author

AliYmn commented Aug 7, 2017

docker rm -f $(docker ps -a -q)
docker rmi -f $(docker images -q)

@AliYmn
Copy link
Author

AliYmn commented Aug 14, 2017

docker run -d -p 80:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

@AliYmn
Copy link
Author

AliYmn commented Aug 15, 2017

docker volume rm 'docker volume ls -q -f dangling=true'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment