question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

devcontainer executable permissions.

See original GitHub issue

Hey folks.

Thanks for this - it’s awesome!

I followed the instructions and enabled the devcontainer cli both on my Mac and on my Pop_OS linux machine. On both of these the devcontainer script was correctly symlinked into place, however calling devcontainer from a shell caused a permission denied error. Upon further inspection the ms-vscode-remote.remote-containers/cli-bin/devcontainer script was installed with 644 file permissions. I had to change them to 755 to be able to run it. Sadly, this means that I am getting an error about a corrupt vscode installation.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrmarticommented, Jul 15, 2022

Not sure when this changed, but the code in Remote-Containers used to work as-is. I will chmod the file after copying as a fix in the extension.

1reaction
jriekencommented, Jul 15, 2022

@jrieken when using vscode.workspace.fs we still go to the renderer process right?

It depends. When the file system is contributed by an extension (e.g. not the renderer, not the REH manager) than we short-circuit these request. So, the file and vscode-remote schemes should always be handled the “usual way” and not go the extension directly

Read more comments on GitHub >

github_iconTop Results From Across the Web

Containers: Permission Denied in files created inside ... - GitHub
devcontainer ; Start Container; While inside the container's bash, create a file/folder. Close VScode and Stop container; Open host folder in ...
Read more >
Add non-root user to a container - Visual Studio Code
Locally, all filesystem operations will use the permissions of your local user ... will still be able to read/write them and all files...
Read more >
Dev Container metadata reference
Defaults to true . Indicates the type of shell to use to “probe” for user environment variables to include in devcontainer.
Read more >
Avoiding Permission Issues With Docker-Created Files
The file permissions and ownership are all wrong. One frequent solution, is to “chown” your shared folder again and again. It's tedious and...
Read more >
VSCode docker dev container can't access ~/.ssh
After several attempts at overriding user permissions in the Dockerfile I came to find out the user is set from the devcontainer.json file....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found