vscode-remote-release
vscode-remote-release copied to clipboard
Permission denied when switch between multiple devcontainers.
- VSCode Version: 1.86.1
- ms-vscode-remote.remote-containers Version: 0.338.1
- Local OS Version: Ubuntu 22.04.3 LTS
Description
I'm actually trying to setup a microservices projet through Devcontainers. I'm based my project structure like the advenced documentation, to make some test on the performance of this kind of project.
I have exactly the same project structure has above, with two images of mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm. And my goal was to F1> Dev Containers: Switch Container between my differents servicies has describe in the docs.
But, when I try tu update and save a file from a different devcontainer as launch. I got a Permission denied on the file.
Steps to Reproduce:
- Clone the project
F1> Dev Containers: Reopen in Container > GatewayF1> Dev Containers: Switch Container > Auth- Try to edit and save
index.ts
Some questions/points to studies.
After some research, I saw some surprising points:
-
Building of devcontainers: When we run thoses devconatiners, they are not run has the same way.
One is run correcly with the devcontainer config
But the second is like a normal container.
Is supose that is normal. However, I was expecting thoses devconatiners will be update when I switch between us, but is not the case ?
-
Temporary solution: A temporary solution that I found is to
F1> Dev Containers: Rebuild containereach time I switch of devcontainer. This cannot be a solution, because I know that in the final version of my project there will bepostCreateCommandswhich will take several minutes, and therefore which cannot be re-executed for each switch.