简体   繁体   English

Fedora Silverblue:VS code 的远程容器扩展:空文件夹

[英]Fedora Silverblue : VS code's remote container extension : empty folder

Introduction介绍

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

Problem问题

When I try this, I obtain an empty project folder:当我尝试这个时,我得到一个空的项目文件夹: Dev Container 的空文件夹

Question问题

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.

相关问题 Git 在由 VS Code 远程容器扩展创建的容器内未检测到存储库 - Git repository not detected inside a container created by VS Code Remote Container extension 没有“在容器中打开文件夹”或远程容器与代码中的任何其他命令 - No “open folder in container” or any other command in remote-containers vs code VS Code Jupyter 扩展:远程笔记本未启动 - VS Code Jupyter Extension: Remote notebook not starting 如何在 Docker 容器中运行 VS Code 的扩展开发主机来测试我的 vscode 扩展? - How can I run VS Code's Extension Development Host in a Docker container to test my vscode extension? 无法使用 VS Code 连接到远程服务器 - 远程 SSH 扩展 - Cannot connect to remote server using VS Code - remote SSH extension vs代码远程容器未在断点处停止 - Vs code remote container not stopping on breakpoints VS 代码:远程容器:使用 SSH - VS Code: Remote Container: Using SSH Visual Studio Code Remote - 容器扩展可以连接到 windows 容器吗? - Can the Visual Studio Code Remote - Container extension connect to a windows container? 当没有 Internet 连接时,如何将扩展安装到作为 Remote-SSH 远程端的 VS Code 服务器中? - How do you install an extension into the VS Code Server that's the remote end of Remote-SSH when there is no Internet connection? 如何在 VS Code 远程容器中拉取特定的远程分支 - How to pull specific remote branch in VS Code Remote Container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM