Skip to content

Commit

Permalink
Handle /etc/docker/daemon.json not existing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisGaul committed Sep 30, 2024
1 parent ae3b868 commit 5d146d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/add-local-docker-registry.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d146d0

Please sign in to comment.