How Remote Docker interpreter runs in remote server?
Hi, I'm currently setting remote interpreter in docker, and have some curiosity.
It seems when I run python script using docker remote interpreter, pycharm runs new container on remote server according to run/debug configuration, not executing scripts in currently running container on remote server(attach).
Is it right? If yes, how can I execute scripts in running container?
Please sign in to leave a comment.
That is correct, by default new container is created on each run.
You can reuse the container by adding "exec" option to python run/debug configuration when using docker-compose interpreter
Connect via SSH to Docker engine running on a remote machine and use the remote machine as a development environment for Visual Studio Code.We created a project and added a Python script. We configured the remote interpreter. We ran and debugged our script in the Docker containers.Start VS Code, run the Remote-Containers: Open Folder in Container... command from ... See the Develop on a remote Docker host article for details on setup.
My Balance Now
The Visual Studio Code Remote - Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set. A devcontainer.json file in your project tells VS prepaidcardstatus Code how to access (or create) a development container with a well-defined tool and runtime stack. This container can be used to run an application or to separate tools, libraries, or runtimes needed for working with a codebase.