Skip to content

Devcontainer - Permission denied in ubuntu with Docker desktop #35

@jrg091

Description

@jrg091

When trying to setup this project using an ubuntu machine with docker desktop I'm seeing the following error:

+ poetry install --no-ansi --no-root
Creating virtualenv python-template in /opt/app/python-template/.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] [--wheel version] [--no-pip] [--no-setuptools] [--no-wheel] [--no-periodic-update] [--symlink-app-data] [--prompt prompt] [-h]
                  dest
virtualenv: error: argument dest: the destination . is not write-able at /opt/app/python-template

Notes

  • It seems that given this poetry install is in the post-creat/start script, the environment is up and running.
  • If I try to create a new file (touch pepe) using vscode terminal, I get touch: cannot touch 'pepe': Permission denied
  • Tested this using a mac with docker desktop, an ubuntu laptop with docker engine and an ubuntu laptop with docker desktop, the ones with docker desktop are having this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions