python 远程解释器_Pycharm docker远程python解释器

When trying to configure a Remote Python Interpreter in Pycharm using Docker I get the following error:

com.github.dockerjava.api.excepion.DockerClientException: Enabled TLS

verification (DOCKER_TLS_VERIFY=1) but certificate path

(DOCKER_CERT_PATH) '/Users/me/.docker/machine/machines/default'

doesn't exist.

I've $export DOCKER_TLS_VERIFY=0 but with no difference.

I've manually created '/Users/me/.docker/machine/machines/default' but with no joy.

I've deinstalled and reinstalled both Docker and Pycharm but still get the same error.

I'm on a Mac OSX 10.12.1

Pycharm 2016.3

Full disclosure: I use vagrant and virtual box on my mac too.

Any pointers would be appreciated.

Kevin

解决方案

If you have been using docker-machine for Mac to support PyCharm or the "socat" hack to access Docker API - It is no longer necessary with PyCharm EAP (https://www.jetbrains.com/pycharm/nextversion/) — You can set your remote debugger API_URL directly to: unix:/var/run/docker.sock (supporting debug mode, and the environment runs a lot faster, when not using VirtualBox).

There is a no-questions-asked 30 day trial of EAP before that update goes live (some time this month)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值