Skip to content

Commit 99c122d

Browse files
PercevalSAGodeffroy
authored andcommitted
improve podman compatibility
1 parent 500c281 commit 99c122d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.devcontainer/devcontainer.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
33
{
4-
"name": "C++",
4+
"name": "C++",
55
// specify to build docker image
66
"build": {
77
"dockerfile": "Dockerfile"
88
},
9+
// for podamn/docker compat. you must wrap docker with 'PODMAN_USERNS=keep-id podman "$@"'
10+
"remoteUser": "vscode",
11+
"containerUser": "vscode",
912
// uncomment to access USB
1013
// "runArgs": [
1114
// "--privileged"
@@ -35,7 +38,7 @@
3538
"settings": {
3639
"python.terminal.activateEnvInCurrentTerminal": true,
3740
"python.defaultInterpreterPath": "~/.platformio/penv/bin/python3"
38-
}
41+
}
3942
}
4043
}
41-
}
44+
}

0 commit comments

Comments
 (0)