https://github.com/willguimont/docker-utils
https://github.com/willguimont/docker-utils
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/willguimont/docker-utils
- Owner: willGuimont
- Created: 2020-06-30T18:37:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-30T18:45:40.000Z (about 6 years ago)
- Last Synced: 2025-04-05T03:02:42.956Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-utils
**docker-rm-exited**: Remove exited docker containers
**docker-prune**: Delete all unused docker images
# Installation
Need to be able to run docker commands without `sudo`, see [documentation](https://docs.docker.com/engine/install/linux-postinstall/)
1. `mkdir ~/bin`
2. Copy `docker-rm-exited` and `docker-prune` into `~/bin`
3. `chmod +x ~/bin/docker-rm-exited ~/bin/docker-prune`
4. Add `PATH=$PATH:$HOME/bin` at the end of your `~/.bashrc`
5. Use with `docker-rm-exited` or `docker-prune`