Python, docker and devcontainer not working

Hello,

I try to setup a simple python project in a docker devcontainer.

IntelliJ IDEA 2026.2.3; Docker version 29.8.1, build 4a63305, Linux Fedora 44

From the startup screen I open an empty folder als project. 

Then: New => Dev container config; Template: Python 3 / 3.14-trixie. Now I run the container “Create Dev container and mount sources” => The project is opened inside the container.

Next: File => Project Structure => Platform Settings => SDK: “+” => Add python SDK from disk.

Type: Virtualenv

Base Python = 3.14 (/usr/bin/python3.14) system

Location: /$devcontainer.ij/4efd7688386d@/IdeaProjects/test-intellij-python-docker/.venv (with green checkmark)

Press ok => Error appears:

/usr/bin/python3.14 /home/thomas/.local/share/JetBrains/IntelliJIdea2026.2/python-ce/helpers/virtualenv-py3.pyz /$devcontainer.ij/4efd7688386d@/IdeaProjects/test-intellij-python-docker/.venv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--read-only-app-data] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--try-first-with py_exe]
                  [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--no-vcs-ignore] [--system-site-packages] [--symlinks | --copies] [--no-download | --download]
                  [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--no-pip] [--no-setuptools] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
                  dest
virtualenv: error: argument dest: the destination . is not write-able at /

Process finished with exit code 2

 

If I choose $devcontainer.ij/xxxx@/usr/local/bin/python3.14 as Base python, I get an error as well:

/usr/local/bin/python3.14 /tmp/o1eq4Zvirtualenv-py3.pyz /$devcontainer.ij/4efd7688386d@/IdeaProjects/test-intellij-python-docker/.venv
usage: virtualenv [--version] [--with-traceback] [-v | -q] [--read-only-app-data] [--app-data APP_DATA] [--reset-app-data] [--upgrade-embed-wheels] [--discovery {builtin}] [-p py] [--try-first-with py_exe]
                  [--creator {builtin,cpython3-posix,venv}] [--seeder {app-data,pip}] [--no-seed] [--activators comma_sep_list] [--clear] [--no-vcs-ignore] [--system-site-packages] [--symlinks | --copies] [--no-download | --download]
                  [--extra-search-dir d [d ...]] [--pip version] [--setuptools version] [--no-pip] [--no-setuptools] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
                  dest
virtualenv: error: argument dest: the destination . is not write-able at /

Process finished with exit code 2

 

What I'm missing?

Thanks a lot! Thomas

0

Please sign in to leave a comment.