Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit fc988722 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

cron.daily/docker-remove-dangling-images: FIX docker volume

parent 467cf548
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
/usr/bin/docker images --filter "dangling=true" -q --no-trunc | xargs --no-run-if-empty docker rmi
/usr/bin/docker volume ls --filter "dangling=true" -q --no-trunc | xargs --no-run-if-empty docker volume rm
/usr/bin/docker volume ls --filter "dangling=true" -q | xargs --no-run-if-empty docker volume rm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment