Pycharm docker远程python解释器 [英] Pycharm docker remote python interpreter

查看:1622
本文介绍了Pycharm docker远程python解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试使用Docker在Pycharm中配置远程Python解释器时,我收到以下错误:

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


com.github.dockerjava.api .excepion.DockerClientException:启用TLS
验证(DOCKER_TLS_VERIFY = 1)但证书路径
(DOCKER_CERT_PATH)'/Users/me/.docker/machine/machines/default'
不存在

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.

我有$ export DOCKER_TLS_VERIFY = 0但没有区别。
我手动创建了'/Users/me/.docker/machine/machines/default',但没有快乐。

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.

我已经卸载并重新安装Docker和Pycharm都是同样的错误。

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

我在Mac OSX 10.12.1
Pycharm 2016.3

I'm on a Mac OSX 10.12.1 Pycharm 2016.3

完全公开:我的mac也使用vagrant和虚拟框。

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

任何指针都将不胜感激。
凯文

Any pointers would be appreciated. Kevin

推荐答案

如果您一直使用Docker-machine for Mac支持PyCharm或socat访问Docker API - PyCharm EAP不再需要( https://www.jetbrains.com/ pycharm / nextversion / ) - 您可以将远程调试器API_URL直接设置为:unix:/var/run/docker.sock(支持调试模式,环境运行速度更快,不使用VirtualBox时)。

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

在此更新生效(本月某个时间)之前,有一个无问题的30天的EAP试用版,

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

这篇关于Pycharm docker远程python解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆