From 2f74d5d254935262aa798db9d0e0978685ec4d16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Tue, 24 Sep 2024 22:59:02 +0300 Subject: [PATCH] Fix docker start command --- tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml b/tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml index b95a9f0b..b3809da5 100644 --- a/tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml +++ b/tf/modules/ooni_th_droplet/templates/cloud-init-docker.yml @@ -162,4 +162,5 @@ runcmd: - ufw allow from ${monitoring_ip} proto tcp to any port 9001 - ufw enable - service nginx restart - - docker run -d -e PROMETHEUS_METRICS_PASSWORD='${metrics_password}' -p 80:80 --restart unless-stopped --name oonith ooni/oonith-oohelperd:latest + - docker container rm -f oonith + - docker run -d -e PROMETHEUS_METRICS_PASSWORD='${metrics_password}' -p 8080:80 --restart unless-stopped --name oonith ooni/oonith-oohelperd:latest