Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Nov 3, 2020
1 parent b015d94 commit 3869d70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3869d70

Please sign in to comment.