Automates deployment of containerized applications
CentOS Sources
2017-11-30 78b10da3fc88c5ddf46b68d3dd3ac9b62fdf2cb6
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Docker Cleanup
Requires=docker.service
 
 
[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c "DEAD=`docker ps -aq -f status=dead` && [ -n \"$DEAD\" ] && docker rm $DEAD; exit 0"
 
[Install]
WantedBy=multi-user.target