Better remove docker script
This commit is contained in:
parent
eccd7dce2b
commit
da6632c7f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user