gce-cloudsql-proxy-action icon indicating copy to clipboard operation
gce-cloudsql-proxy-action copied to clipboard

Connect to multiple dbs?

Open Irajamani opened this issue 4 years ago • 1 comments

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.

Irajamani avatar Jun 22 '21 19:06 Irajamani

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.

mattes avatar Jun 22 '21 22:06 mattes