https://github.com/docwhat/docker-gc-docker
https://github.com/docwhat/docker-gc-docker
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/docwhat/docker-gc-docker
- Owner: docwhat
- Created: 2016-07-15T01:11:28.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T02:09:01.000Z (over 5 years ago)
- Last Synced: 2025-04-10T23:44:31.157Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker GC
This docker image contains [`docker-gc`](https://github.com/docwhat/docker-gc),
a garbage collector for Docker images.
## Usage
The docker container must be able to talk to the docker daemon. If you are
using a Unix socket, then you can probably get away with `-v
/var/run/docker.sock:/var/run/docker.sock:rw`.
Inside the container, `docker-gc` runs as root, so the permissions of the Unix
socket shouldn't matter unless you're using SELinux.
Example:
``` sh
$ docker run \
--restart unless-stopped \
--detach \
--volume=/var/run/docker.sock:/var/run/docker.sock:rw \
--name=docker-gc \
docwhat/docker-gc:latest --verbosity=9 --sweeper-time=5m
```
## Source
* [`docker-gc`](https://github.com/docwhat/docker-gc)
* [`Dockerfile`](https://github.com/docwhat/docker-gc-docker)