简体   繁体   中英

How to use Docker and PyCharm on Mac?

I have installed Docker for Mac (not toolbox). It works, but now I want to use PyCharm with Docker and I don't understand from where I need get this data?

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?

在此输入图像描述

Based on what you have provided, PyCharm supports only the legacy version of Docker for Mac. The new one needs nor VirtualBox neither Docker Machine.

You could deploy it manually or install the old version of Docker which I wouldn't really recommend.

You need to update PyCharm and therefore Docker integration plugin.

Plugin v2.5.0 (compatible with IDEA 17.1 EAPs) should support direct connection to unix:///var/run/docker.sock .

This should be your API URL.

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

For Certificates folder, it should be set by default to

~/.docker/machine/machines/default

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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