Skip to content

Instantly share code, notes, and snippets.

@BCadet
Created July 4, 2022 11:50
Show Gist options
  • Save BCadet/bfb1957864b830f9b5f0c275c15e554b to your computer and use it in GitHub Desktop.
Save BCadet/bfb1957864b830f9b5f0c275c15e554b to your computer and use it in GitHub Desktop.
Make VSCode devcontainer works on a machine with multiple users

github issue

Problem

When multiple users try to user VSCode devcontainer on a remote server, some files are initialized in the /tmp path with the user ownership.
When a second user tries to user VSCode remote server, he's stuck on an ACCESS DENIED error in these folders.

Workaround

Each user shall create a folder with his username in /tmp and export in his .bashrc the variable TMPDIR=/tmp/$USER. It fix all access problems in VSCode and docker-compose. This is a workaround for now, waiting for VSCode and docker-compose to fix this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment