Giter Club home page Giter Club logo

Comments (19)

rn avatar rn commented on July 23, 2024

DOCKER_TLS_VERIFY is a environment variable and not a docker daemon config file options. See: https://docs.docker.com/engine/reference/commandline/dockerd/#/daemon-configuration-file for the documentation. I suspect you might want to use "tlsverify": false,

from for-win.

snarb avatar snarb commented on July 23, 2024

log-2016-08-15_16-53-40.zip

The same with "tlsverify": false. Docker can't start any more. Typically when the user input incorrect value program just returs message to the user and ignore that setting, not fail to start.

Other issue, if "tlsverify": false not working - how can I disable tls verification in windows? Look like it is enabled by default and makes other programs like PyCharm fail to use daemon API. For instance I am starting container with "docker run -e DOCKER_TLS_VERIFY=0 -it -p 8888:8888 tensorflow/tensorflow" but still got error from PyCharm "Enabled TLS verification (DOCKER_TLS_VEROFY=1) but certificate path (DOCKER_CERT_PATH) 'C:\xxx' doesn't exits".. so looks like I can't pass -e DOCKER_TLS_VERIFY=0. What should I do to disable it?

from for-win.

rn avatar rn commented on July 23, 2024

Ah, it turns out that if you specify "tlsverify": false to the config file, the daemon expects tlscert and tlskey to be set as well.

Stepping back, what is the issue you are trying to solve?

from for-win.

snarb avatar snarb commented on July 23, 2024

I want do disable tls verification because PyCharm(Python IDE) when i want to connect remotly to container using docker API see that DOCKER_TLS_VERIFY is true but DOCKER_CERT_PATH doesn't exits and fails to connect. I want to solve this.

from for-win.

rn avatar rn commented on July 23, 2024

can you try as suggested on this forum post: https://forums.docker.com/t/how-to-find-the-remote-api/20988

from for-win.

dgageot avatar dgageot commented on July 23, 2024

@pkonovalov-softheme I think you used to use docker machine and now use Docker for Windows. Right?

What's happening is that your shell is configured with the DOCKER_TLS_VERIFY set to true so the python docker api thinks it should connect to the docker daemon with TLS.

I think the solution is not to change the daemon configuration but to unset the DOCKER_TLS_VERIFY and all the other all the DOCKER_* env variables in your shell profile.

from for-win.

dgageot avatar dgageot commented on July 23, 2024

Hi @pkonovalov-softheme, did you manage to solve your issue? I'd like to close this issue since I don't think there's a bug here but I want to be sure that it's ok with you.

from for-win.

thesnarb avatar thesnarb commented on July 23, 2024

HI @dgageot! Thanks! Sorry, but I don't know because after this problems I started using bash on Win10 for my task instead of Docker :( You can close.

from for-win.

dgageot avatar dgageot commented on July 23, 2024

@thesnarb Thanks for the feedback. I'm going to close the issue then!

from for-win.

keithsmith5150 avatar keithsmith5150 commented on July 23, 2024

@dgageot I'm very new to pycharm. (new to python as well)

I've tried finding DOCKER_TLS_VERIFY with no luck. Can you point me in the right direction?

Thanks

from for-win.

chananshgong avatar chananshgong commented on July 23, 2024

Waiting for a solution. I would like to connect to docker using PyCharm in windows and fail to do so as well.

from for-win.

waza-ari avatar waza-ari commented on July 23, 2024

I basically have the same problem, did not find a solution yet. Would be interested if someone find a solution to natively use dockerized python containers on OS X with PyCharm.

from for-win.

chanansh avatar chanansh commented on July 23, 2024

Managed to solve this by using the native engine rather than the old docker-machine way. See stackoverflow question here:

Since I had a failry hard time getting the remote interpreter running, here is the short version for those using 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later) as specified here: https://docs.docker.com/engine/installation/windows/#/docker-for-windows And in the future hopefully all recent Windows 10 versions.

There is no need to fiddle around with the docker-machine. When Docker is up and running: 1. Make sure you share the C drive between Docker and your local machine 2. When specifying the remote interpreter set tcp://localhost:2375 as API URL. That’s it.

Credit: Markus at this blog post comments: https://blog.jetbrains.com/pycharm/2015/12/using-docker-in-pycharm/#comment-296772

from for-win.

waza-ari avatar waza-ari commented on July 23, 2024

I am also using the native engine, but got the same problem there. Using tcp://localhost:2376 or tcp://localhost:2375 results in a connection refused message. Not sure how to configure this at all using OS X. This however has nothing to do with this original topic, so I am going to ask somewhere else.

from for-win.

chananshgong avatar chananshgong commented on July 23, 2024

from for-win.

reinoud avatar reinoud commented on July 23, 2024

@waza-ari After looking for a day on how to get it working I installed Pycham 2017 EAP, where you can enter unix:///var/run/docker.sock as API url. (On OSX)

(still trying to figure out how to get around the DOCKER_CERT_PATH issue; ~/.docker does not exist...)

from for-win.

veuncent avatar veuncent commented on July 23, 2024

I solved this by using tcp://localhost:2375 as API URL and emptying the Certificates folder field in the Docker server settings in PyCharm 2017 Pro.

from for-win.

waza-ari avatar waza-ari commented on July 23, 2024

@reinoud thank you, the URL worked. Additionally, I just emptied the Certificates folder as @veuncent suggested, and this finally seems to work.

from for-win.

docker-robott avatar docker-robott commented on July 23, 2024

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

from for-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.