Systemd: remove old containers on restart

This commit is contained in:
Kuba Orlik 2022-07-08 09:11:28 +02:00
parent 72cd33001e
commit 84c9c6a99a

View File

@ -7,6 +7,7 @@ Type=simple
User=root
Group=root
WorkingDirectory=/root/ss
ExecStartPre=/usr/bin/bash -c 'docker rm -f $(docker ps | grep headless-fox | awk \'{print $1}\')'
ExecStart=node /root/ss
Restart=on-failure
RestartSec=1s