简体   繁体   English

如何在Mac上使用Docker和PyCharm?

[英]How to use Docker and PyCharm on Mac?

I have installed Docker for Mac (not toolbox). 我已经安装了Docker for Mac (不是工具箱)。 It works, but now I want to use PyCharm with Docker and I don't understand from where I need get this data? 它工作,但现在我想使用PyCharm与Docker,我不明白我需要从哪里获取这些数据?

Should I first create machine? 我应该先创建机器吗?

docker-machine create --driver virtualbox default

but if I want to use Docker without any Docker machines, what are the default API URL and certificates folder? 但是如果我想在没有任何Docker机器的情况下使用Docker,那么默认的API URL和证书文件夹是什么?

在此输入图像描述

Based on what you have provided, PyCharm supports only the legacy version of Docker for Mac. 根据您提供的内容,PyCharm仅支持旧版Docker for Mac。 The new one needs nor VirtualBox neither Docker Machine. 新的既不需要VirtualBox也不需要Docker Machine。

You could deploy it manually or install the old version of Docker which I wouldn't really recommend. 您可以手动部署它或安装我不太推荐的旧版Docker。

You need to update PyCharm and therefore Docker integration plugin. 您需要更新PyCharm,因此需要更新Docker集成插件。

Plugin v2.5.0 (compatible with IDEA 17.1 EAPs) should support direct connection to unix:///var/run/docker.sock . 插件v2.5.0(与IDEA 17.1 EAP兼容)应支持unix:///var/run/docker.sock 直接连接

This should be your API URL. 这应该是您的API网址。

unix:///var/run/docker.sock UNIX:///var/run/docker.sock

For Certificates folder, it should be set by default to 对于Certificates文件夹,默认情况下应设置为

~/.docker/machine/machines/default 〜/ .docker /机械/机器/默认

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM