From 533637f54c157d9313237292613a9c46a4895904 Mon Sep 17 00:00:00 2001 From: zhiqiang feng Date: Tue, 20 Feb 2024 10:56:56 +0000 Subject: [PATCH] share .ssh with containers --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 85fe534b..72f5f190 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -40,8 +40,8 @@ } }, "mounts": [ - "type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly" - ] + "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached", + ] // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [],