From c7f201486f7a3ba5e06da60c316c425493f9c124 Mon Sep 17 00:00:00 2001 From: ksemele Date: Sun, 10 Jul 2022 20:43:42 +0300 Subject: [PATCH] add stop&remove stopped container before start --- run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run.sh b/run.sh index a564fbb..84a5452 100755 --- a/run.sh +++ b/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