Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to multiple dbs? #4

Open
Irajamani opened this issue Jun 22, 2021 · 1 comment
Open

Connect to multiple dbs? #4

Irajamani opened this issue Jun 22, 2021 · 1 comment

Comments

@Irajamani
Copy link

I just tried connecting to multiple dbs but I am getting an error saying
docker: Error response from daemon: Conflict. The container name "/gce-cloudsql-proxy" is already in use by container "fa8e929a09fe5d01a6b80a73a35898e9a2c7a928447dcce915db3328551fed80". You have to remove (or rename) that container to be able to reuse that name. Could you let me know how to connect to multiple db's at the same time? Thank you so much for this wonderful project.

@mattes
Copy link
Owner

mattes commented Jun 22, 2021

I created a PR to support multiple instances.

https://github.com/mattes/gce-cloudsql-proxy-action/pull/5/files

I think you should be able to use the PR like this:

uses: mattes/gce-cloudsql-proxy-action@multi-instances

Didn't test the code. Let me know how it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants