Skip to content

Running and linting Python from Docker without installing Python #17239

@brettcannon

Description

@brettcannon

Discussed in #15673

Originally posted by AJGranowski March 15, 2021
I think it could be neat to set the Python executable "path" to something like

docker run -it --rm --mount type=bind,source="$pwd",target=/vscode --workdir /vscode python:3 python 

so we could run Python projects without having Python locally installed.

Currently this does not work because VSCode will wrap the interpreter "path" with quotes

PS C:\docker-test> & "docker run -it --rm --mount type=bind,source="$pwd",target=/vscode --workdir /vscode python:3 python" c:/docker-test/src/main.py
```</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions