Skip to content

Commit

Permalink
Merge pull request #2601 from stmcginnis/network-connect-registry
Browse files Browse the repository at this point in the history
Local registry: only attach network if missing
  • Loading branch information
k8s-ci-robot authored Jan 25, 2022
2 parents bf63502 + 90eef3a commit a42f011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/static/examples/kind-with-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ EOF

# connect the registry to the cluster network
# (the network may already be connected)
docker network connect "kind" "${reg_name}" || true
if [ "$(docker inspect --format='{{json .NetworkSettings.Networks.kind}}' "${reg_name}")" = 'null' ]; then
docker network connect "kind" "${reg_name}" || true
fi

# Document the local registry
# https://github.com/kubernetes/enhancements/tree/master/keps/sig-cluster-lifecycle/generic/1755-communicating-a-local-registry
Expand Down

0 comments on commit a42f011

Please sign in to comment.