Getting unsupported protocol schema error with docker in pycharm

I am getting the following error when running docker interpreter in pycharm

Error: com.github.dockerjava.api.exception.DockerClientException: Unsupported protocol schema found: ''. Only 'tcp: //' or 'unix: //' is supported.

I have tried ssh into an image I am running and checking it manually and everything looks fine. The machine's ip address is ok.

NAME            ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER    ERRORS
MyVM   -        virtualbox   Running   tcp://192.168.99.100:2376           v1.11.2

      

+3


source to share


5 answers


I raised a bug for this on jetbrains when I saw it was a bug on their side.



I solved this by removing all remote interpreters and adding a new one

+3


source


Happened to me after upgrading to PyCharm 2017.1.2



I solved this by setting up the Python Interpreter - click "New ..." next to the server dropdown menu. This will open a new dialog in which the "Certificate Folder" text box has the value "~ / .docker" - empty this value and click "OK". (see also https://www.jetbrains.com/help/pycharm/2017.1/docker-2.html which says this element is deprecated and should be empty)

+5


source


If you go to Settings> Build, Execution, Deployment → Docker and look at your interpreter, it appears that the API URL field was destroyed during the upgrade (at least for me). If you fix this field (make a new interpreter and just copy it into the value) everything works again.

+4


source


I have the same problem, but I found a way to solve it. Go to Jenkins directory andgrep http://localhost:4243/

In my case, one file has this setting:

org.jenkinsci.plugins.dockerbuildstep.DockerBuilder.xml

      

I changed directly in this file from http://localhost:4243/

to tcp://localhost:4243

. Restart Jenkins service and the problem is gone.

0


source


On a Mac with Intellij, there was the same error:

Error: com.github.dockerjava.api.exception.DockerClientException: Unsupported protocol schema found: ''. Only "tcp: //" or "unix: //" are supported.

Solved this:

1. Going View -> Tools -> Docker
2. right click on 'Docker' (for me, bottom menu, left side)
3. click 'Edit configuration'
4. change from 'TCP socket' to 'Docker from Mac'
5. Click Connect (the play button on the left in the same Docker menu)

      

You should now be connected and see your images and containers.

0


source







All Articles