use*_*113 6 visual-studio-code visual-studio-container-tools
阅读 devcontainer.json 参考,我仍然无法理解: https: //code.visualstudio.com/docs/remote/devcontainerjson-reference
containerUser: Overrides the user all operations run as inside the container.
remoteUser: Overrides the user that VS Code runs as in the container (along with sub-processes like terminals, tasks, or debugging)
Run Code Online (Sandbox Code Playgroud)
containerUser和 和有什么区别remoteUser?我什么时候应该使用其中之一?你能提供例子吗?
谢谢!
{
"remoteUser": {
"type": "string",
"description": "The username to use for spawning processes in the container including lifecycle scripts and any remote editor/IDE server process. The default is the same user as the container."
},
"containerUser": {
"type": "string",
"description": "The user the container will be started with. The default is the user on the Docker image."
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2057 次 |
| 最近记录: |