initial commit, here be dragons

This commit is contained in:
2021-04-04 18:45:11 +02:00
commit 58137668b7
39 changed files with 1237 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=Docker Housekeeping
[Service]
Type=oneshot
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/usr/local/bin/docker-prune.sh

View File

@ -0,0 +1,10 @@
#!/bin/sh
# prune *all* images not currently used
docker image prune -af
# prune unused volumes (we keep all state host-mounts)
docker volume prune -f
# prune images, containers, networks etc. but keep potentially used one (no -a)
docker system prune -f
# update left-over images
docker images | grep -v "^REPO" | grep -v "^<none>" | sed 's/ \+/:/g' | cut -d: -f1,2 | xargs -L1 docker pull

View File

@ -0,0 +1,2 @@
[Timer]
OnCalendar=Mon 12:04