[英]Fedora Silverblue : VS code's remote container extension : empty folder
I'm currently trying to use Remote container of VS Code with Fedora 36 Silverblue OS .我目前正在尝试将VS Code的远程容器与Fedora 36 Silverblue OS一起使用。
And I configured the extension to use Podman instead of Docker .我将扩展配置为使用Podman而不是Docker 。
The project with which I try to use the extension: https://github.com/beurtschipper/Depix我尝试使用扩展的项目: https://github.com/beurtschipper/Depix
When I try this, I obtain an empty project folder:当我尝试这个时,我得到一个空的项目文件夹:
Does someone have the solution to solve this problem?有人有办法解决这个问题吗?
To fix this issue, you need to add the following to your devcontainer.json:要解决此问题,您需要将以下内容添加到您的 devcontainer.json:
"remoteUser": "vscode",
"containerUser": "vscode"
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z",
"runArgs": [
"--userns=keep-id"
]
After that, you can run "Rebuild Container" and it should work.之后,您可以运行“Rebuild Container” ,它应该可以工作。
Sources:资料来源:
workspaceMount 工作区挂载
runArgs 运行参数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.