How to connect PyCharm to a python interpreter located inside a Docker container?

前端 未结 10 2385
再見小時候
再見小時候 2021-01-30 03:40

I\'m starting with Docker, but I don\'t know how to configure PyCharm to use a python interpreter located in a container.

It was easy to setup with Vagrant, but there\'s

10条回答
  •  误落风尘
    2021-01-30 03:43

    I haven't tried this, but I would try creating a Bash script which calls docker exec ..., as in @Anto's answer.

    Then, install the BashSupport extension. Now create a new run configuration which runs your script as a Bash script.

提交回复
热议问题