Remote Docker in GCE

Answered

I want to be able to run my code inside a Docker container running on a GCE instance. I dont want to manually have to start the Docker container, this should ideally be handled by Pycharm (the way it works with a local Docker interpreter) and I only want to need to have SSH access to the GCE instance. Is there a way to do this?

I can connect to the docker daemon in the GCE instance using docker -H ssh://user@gce-ip [docker command], but when I configure a new Docker interpreter in Pycharm it only gives me the possibilities to connect via TCP, Unix socket or docker-machine.

 

Any idea how I could achieve what I want? I use Pycharm Professional 2019.3

0
1 comment

PyCharm doesn't support running docker on the remote machine at the moment, but there is a workaround https://youtrack.jetbrains.com/issue/PY-33489

Although I'm not sure if it's valid in your case.

There is also a feature request for GCE remote development support https://youtrack.jetbrains.com/issue/PY-19932

1

Please sign in to leave a comment.