mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 16:43:26 +02:00
Add a docker build helper for cleaning up untagged images.
This commit is contained in:
8
docker/extras/docker-cleanup-dangling-images.service
Normal file
8
docker/extras/docker-cleanup-dangling-images.service
Normal file
@@ -0,0 +1,8 @@
|
||||
[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'
|
||||
Reference in New Issue
Block a user