nishantvas
nishantvas

Reputation: 304

Getting Unsupported protocol scheme error with docker in pycharm

I'm getting the following error when launching docker interpreter in pycharm

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

I've tried to ssh into the image that i'm running and check it manually, and everything looks to be working fine. The Ip address of the machine is alright as well.

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

Upvotes: 4

Views: 12448

Answers (5)

Tanel
Tanel

Reputation: 1500

On a macos with Intellij, had the same error:

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

Solved it by:

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 for 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.

Upvotes: 1

Dan Pav
Dan Pav

Reputation: 53

I have the same issue, but I find a way to solve it. Go to Jenkins dir and grep http://localhost:4243/

On my case, one file have this parameter:

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 disappeared

Upvotes: 0

DaytonG
DaytonG

Reputation: 66

If you go into Preferences >> Build, Execution, Deployment >> Docker and look at your interpreter, it seems the "API URL" field was wiped out during an upgrade (at least for me). If you fix that field (make a new interpreter and just copy in the value), things work again.

Upvotes: 4

nishantvas
nishantvas

Reputation: 304

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

I resolved this by removing all the remote interpreters and adding anew

Upvotes: 3

zeevb
zeevb

Reputation: 103

Happened to me after upgrading to PyCharm 2017.1.2

I've resolved this by configuring the Python Interpreter - click "New..." near the Server pulldown menu. This will open a new dialog in which the Certificate Folder text field has the value "~/.docker" - empty this value and click ok. (see also https://www.jetbrains.com/help/pycharm/2017.1/docker-2.html which states that this item is deprecated and should be empty)

Upvotes: 5

Related Questions