blob: 00384ac92a05cefc8d7f6bc6fade766f99cdd693 [file] [log] [blame]
[Unit]
Description=Clean up dangling Docker images
After=docker.service
Requires=docker.service
[Service]
Type=oneshot
ExecStart=/usr/bin/env sh -c '/usr/bin/docker images -q --filter "dangling=true" | xargs -t --no-run-if-empty /usr/bin/docker rmi'