From 3869d70744209f122e8a3648128934158317ea89 Mon Sep 17 00:00:00 2001 From: nicolaferraro Date: Wed, 4 Nov 2020 00:34:04 +0100 Subject: [PATCH] test --- registry.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/registry.sh b/registry.sh index 072e34f..b9d2ea9 100755 --- a/registry.sh +++ b/registry.sh @@ -129,9 +129,8 @@ create_registry() { echo "127.0.0.1 $registry_name" | sudo tee --append /etc/hosts # Setting registry as insecure - patch=".\"insecure-registries\" = \"${registry_name}:${registry_port}\"" + patch=".\"insecure-registries\" = [\"${registry_name}:${registry_port}\""] sudo jq "$patch" /etc/docker/daemon.json > /tmp/daemon.json.tmp && sudo mv /tmp/daemon.json.tmp /etc/docker/daemon.json - cat /etc/docker/daemon.json # Restart docker daemon sudo service docker restart