From 5c4ebb4c4bb178227ac042f6718b1a5722b8accb Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Thu, 18 Jul 2024 08:36:55 -0400 Subject: [PATCH 1/2] chore: correct address version in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index beeb85ec2..a92e5390d 100644 --- a/README.md +++ b/README.md @@ -438,10 +438,10 @@ the proxy's internal port to the host. For example, you can use: ```shell docker run --publish : \ gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.12.0 \ - --address "2.12.0.0" --port + --address "0.0.0.0" --port ``` -You'll need the `--address "2.12.0.0"` so that the proxy doesn't only listen for +You'll need the `--address "0.0.0.0"` so that the proxy doesn't only listen for connections originating from *within* the container. You will need to authenticate using one of the methods outlined in the @@ -466,7 +466,7 @@ docker run \ --publish : \ --mount type=bind,source="$(pwd)"/sa.json,target=/config/sa.json \ gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.12.0 \ - --address 2.12.0.0 \ + --address 0.0.0.0 \ --port \ --credentials-file /config/sa.json ``` From 971da39424150dff2ce6fa916d41979b1efdb547 Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Thu, 18 Jul 2024 10:47:54 -0400 Subject: [PATCH 2/2] chore: Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a92e5390d..08487e494 100644 --- a/README.md +++ b/README.md @@ -434,10 +434,9 @@ The containers have the proxy as an `ENTRYPOINT` so, to use the proxy from a container, all you need to do is specify options using the command, and expose the proxy's internal port to the host. For example, you can use: - ```shell docker run --publish : \ - gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.12.0 \ + gcr.io/cloud-sql-connectors/cloud-sql-proxy:latest \ --address "0.0.0.0" --port ``` @@ -465,12 +464,11 @@ For example, a full command using a JSON credentials file might look like docker run \ --publish : \ --mount type=bind,source="$(pwd)"/sa.json,target=/config/sa.json \ - gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.12.0 \ + gcr.io/cloud-sql-connectors/cloud-sql-proxy:latest \ --address 0.0.0.0 \ --port \ --credentials-file /config/sa.json ``` - ## Running as a Kubernetes Sidecar