Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/djmaze/docker-autoprune
Run "docker system prune" on a repeated interval
https://github.com/djmaze/docker-autoprune
docker
Last synced: 27 days ago
JSON representation
Run "docker system prune" on a repeated interval
- Host: GitHub
- URL: https://github.com/djmaze/docker-autoprune
- Owner: djmaze
- License: mit
- Created: 2023-12-06T22:35:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T22:39:28.000Z (about 1 year ago)
- Last Synced: 2024-12-08T20:41:18.525Z (about 1 month ago)
- Topics: docker
- Language: Shell
- Homepage: https://hub.docker.com/r/decentralize/docker-autoprune
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-autoprune
Docker image which runs `docker system prune` on a repeated interval.
## Usage
### Docker Compose
```yaml
services:
app:
image: decentralize/docker-autoprune:0.1.0
init: true
environment:
- SLEEP_TIME=3600
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
```### Docker Swarm Mode
```yaml
version: "3.7"services:
app:
image: decentralize/docker-autoprune:0.1.0
init: true
environment:
- SLEEP_TIME=3600
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
mode: global
```### Options
* `SLEEP_TIME`: time to wait between each run, in seconds