http://blog.csdn.net/pipisorry/article/details/50808034
[Docker教程:docker的安装]
[Docker教程:dokcer的配置]
皮皮blog
$cd /media/pika/files/mine/python_workspace/DockerEnv
$docker build -t python_ubuntu .
[Docker教程:dokcer machine的概念和安装]
[Docker教程:docker machine的配置和命令]
pycharm中设置docker-machine
file > settings > project > project interpreter > 选中要设置运行环境的项目名 > project interpreter设置按钮选择add remote > 选择docker
Note: 如果当前要使用的docker machine没有start,pycharm会提示开启dm的。
Note: 如果images有错误,则导入会失败,提示unknown interpreter docker,或者output format error或者non-zero exit code?
导入成功应该是这样的:
但是在pycharm中运行时,却找不到python解释器,一直报错:Can't run remote python interpreter: Container command not found or does not exist.这个怎么解决????
或者docker can't create python sdk Container command not found or does not exist.
至此,就可以使用docker images中的python开发环境了。
[Using Docker in PyCharm]
[PyCharm 5.1 Beta 2 is available]
[使用Deployment]
from: http://blog.csdn.net/pipisorry/article/details/50808034
ref: