add stop&remove stopped container before start
This commit is contained in:
parent
4c334e0e32
commit
c7f201486f
5
run.sh
5
run.sh
|
@ -1 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
container=$(podman ps --noheading | grep expense-bot | awk '{print$1}')
|
||||||
|
sudo podman stop $container
|
||||||
|
sudo podman rm $container
|
||||||
sudo podman run -d --name expense-bot --restart always quay.io/ksemele/expense-bot:0.1.0
|
sudo podman run -d --name expense-bot --restart always quay.io/ksemele/expense-bot:0.1.0
|
||||||
|
|
Loading…
Reference in New Issue