Skip to content

Commit

Permalink
fix(installer): add insecure-registry (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Apr 6, 2023
1 parent ba5523c commit d8e6321
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/docker/tools/tke-installer/dockerd-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,15 @@ if [ "$#" -eq 0 ] || [ "${1#-}" != "$1" ]; then
--tlscacert "$DOCKER_TLS_CERTDIR/server/ca.pem" \
--tlscert "$DOCKER_TLS_CERTDIR/server/cert.pem" \
--tlskey "$DOCKER_TLS_CERTDIR/server/key.pem" \
--insecure-registry=registry.tke.com \
"$@"
DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS="${DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS:-} -p 0.0.0.0:2376:2376/tcp"
else
# TLS disabled (-e DOCKER_TLS_CERTDIR='') or missing certs
set -- dockerd \
--host="$dockerSocket" \
--host=tcp://0.0.0.0:2375 \
--insecure-registry=registry.tke.com \
"$@"
DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS="${DOCKERD_ROOTLESS_ROOTLESSKIT_FLAGS:-} -p 0.0.0.0:2375:2375/tcp"
fi
Expand Down

0 comments on commit d8e6321

Please sign in to comment.