簡體   English   中英

Fedora Silverblue:VS code 的遠程容器擴展:空文件夾

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

介紹

我目前正在嘗試將VS Code遠程容器Fedora 36 Silverblue OS一起使用。
我將擴展配置為使用Podman而不是Docker
我嘗試使用擴展的項目: https://github.com/beurtschipper/Depix

問題

當我嘗試這個時,我得到一個空的項目文件夾: Dev Container 的空文件夾

問題

有人有辦法解決這個問題嗎?

要解決此問題,您需要將以下內容添加到您的 devcontainer.json:

"remoteUser": "vscode",
"containerUser": "vscode"
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,Z",
"runArgs": [
  "--userns=keep-id"
]

之后,您可以運行“Rebuild Container” ,它應該可以工作。

資料來源:
工作區掛載
運行參數

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM