|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile |
3 | 3 | { |
4 | | - "features": { |
5 | | - "ghcr.io/devcontainers/features/rust:1": {}, |
6 | | - }, |
7 | | - "name": "Dev", |
8 | | - "build": { |
9 | | - // Sets the run context to one level up instead of the .devcontainer folder. |
10 | | - "context": ".", |
11 | | - // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
12 | | - "dockerfile": "Dockerfile" |
13 | | - }, |
14 | | - // required for netlink and other privileged operations |
15 | | - "privileged": true, |
16 | | - "capAdd": [ |
17 | | - "NET_ADMIN" |
18 | | - ], |
| 4 | + "features": { |
| 5 | + "ghcr.io/devcontainers/features/rust:1": {}, |
| 6 | + }, |
| 7 | + "name": "Dev", |
| 8 | + "build": { |
| 9 | + // Sets the run context to one level up instead of the .devcontainer folder. |
| 10 | + "context": ".", |
| 11 | + // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. |
| 12 | + "dockerfile": "Dockerfile", |
| 13 | + }, |
| 14 | + // required for netlink and other privileged operations |
| 15 | + "privileged": true, |
| 16 | + "capAdd": ["NET_ADMIN"], |
19 | 17 |
|
20 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
21 | | - // "features": {}, |
| 18 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 19 | + // "features": {}, |
22 | 20 |
|
23 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
24 | | - // "forwardPorts": [], |
| 21 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 22 | + // "forwardPorts": [], |
25 | 23 |
|
26 | | - // Uncomment the next line to run commands after the container is created. |
27 | | - // "postCreateCommand": "cat /etc/os-release", |
| 24 | + // Uncomment the next line to run commands after the container is created. |
| 25 | + // "postCreateCommand": "cat /etc/os-release", |
28 | 26 |
|
29 | | - // Configure tool-specific properties. |
30 | | - // "customizations": {}, |
| 27 | + // Configure tool-specific properties. |
| 28 | + // "customizations": {}, |
31 | 29 |
|
32 | | - // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
33 | | - // "remoteUser": "devcontainer" |
| 30 | + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
| 31 | + // "remoteUser": "devcontainer" |
34 | 32 | } |
0 commit comments