Systemd: remove old containers on restart
This commit is contained in:
parent
72cd33001e
commit
84c9c6a99a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user