1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2
+ // README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose
3
+ {
4
+ "name" : " Docker from Docker Compose" ,
5
+ "dockerComposeFile" : " docker-compose.yml" ,
6
+ "service" : " app" ,
7
+ "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
8
+ // Use this environment variable if you need to bind mount your local source code into a new container.
9
+ "remoteEnv" : {
10
+ "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
11
+ },
12
+ "remoteUser" : " vscode" ,
13
+ "features" : {
14
+ "ghcr.io/devcontainers/features/common-utils:2" : {
15
+ "installZsh" : false ,
16
+ "configureZshAsDefaultShell" : false ,
17
+ "installOhMyZshConfig" : false ,
18
+ "userUid" : 1000 ,
19
+ "userGid" : 1000 ,
20
+ "upgradePackages" : false
21
+ },
22
+ "ghcr.io/devcontainers/features/docker-outside-of-docker:1" : {
23
+ "version" : " latest" ,
24
+ "enableNonRootDocker" : true ,
25
+ "moby" : true
26
+ },
27
+ "ghcr.io/devcontainers/features/go:1" : {
28
+ "version" : " 1.22"
29
+ }
30
+ },
31
+ "privileged" : true ,
32
+ "hostRequirements" : {
33
+ "gpu" : true
34
+ }
35
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
36
+ // "forwardPorts": [],
37
+ // Use 'postCreateCommand' to run commands after the container is created.
38
+ // "postCreateCommand": "docker --version",
39
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
40
+ // "remoteUser": "root"
41
+ }
0 commit comments