Better remove docker script

This commit is contained in:
Kuba Orlik 2022-07-08 10:51:55 +02:00
parent eccd7dce2b
commit da6632c7f8

View File

@ -7,7 +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}\')'
ExecStartPre=/usr/bin/bash -c 'docker ps | grep headless-fox | sed 's/ .*//' | xargs -I {} docker rm -f {}'
ExecStart=node /root/ss
Restart=on-failure
RestartSec=1s