From 5d146d004307165596bea8f15ec3d259a593bfdf Mon Sep 17 00:00:00 2001 From: Lewis Gaul Date: Mon, 30 Sep 2024 23:33:32 +0100 Subject: [PATCH] Handle /etc/docker/daemon.json not existing in CI --- scripts/add-local-docker-registry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/add-local-docker-registry.sh b/scripts/add-local-docker-registry.sh index f91f238b..c5f94ec7 100755 --- a/scripts/add-local-docker-registry.sh +++ b/scripts/add-local-docker-registry.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash -set -e +set -ex -cat /etc/docker/daemon.json +cat /etc/docker/daemon.json || true echo '{"insecure-registries" : [ "localhost:5000" ]}' | sudo tee /etc/docker/daemon.json sudo service docker restart sleep 2