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
source to share
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)
source to share
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.
source to share
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.
source to share