Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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