Move nvidia runArgs
This commit is contained in:
Родитель
4cf3caa7e7
Коммит
0f1da3fc47
|
@ -10,9 +10,6 @@
|
|||
|
||||
"dockerFile": "Dockerfile",
|
||||
|
||||
// Uncomment to enable Nvidia support
|
||||
// "runArgs": ["--runtime=nvidia"],
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"terminal.integrated.shell.linux": null,
|
||||
|
@ -36,7 +33,7 @@
|
|||
//"BazelBuild.vscode-bazel",
|
||||
"ms-python.python",
|
||||
"ms-vscode.cpptools"
|
||||
],
|
||||
],
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
@ -48,7 +45,13 @@
|
|||
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
|
||||
|
||||
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
|
||||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
|
||||
"runArgs": [
|
||||
// Uncomment to enable Nvidia support
|
||||
// "--runtime=nvidia"],
|
||||
"--cap-add=SYS_PTRACE",
|
||||
"--security-opt",
|
||||
"seccomp=unconfined"
|
||||
],
|
||||
|
||||
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "vscode"
|
||||
|
|
Загрузка…
Ссылка в новой задаче