Skip to content

Commit 04863f6

Browse files
committed
chore(devcontainer): add docker outside docker
Signed-off-by: Vladislav Polyakov <[email protected]>
1 parent aad6413 commit 04863f6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.devcontainer/cluster/devcontainer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@
1717
"features": {
1818
"ghcr.io/devcontainers/features/git": {},
1919
"ghcr.io/devcontainers/features/common-utils": {},
20-
"ghcr.io/devcontainers/features/github-cli:1": {}
20+
"ghcr.io/devcontainers/features/github-cli:1": {},
21+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
2122
},
2223
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2324
"forwardPorts": [
2425
"ydb-storage:2136",
2526
"ydb-storage:8765",
2627
"prometheus:9090"
2728
],
29+
"otherPortsAttributes": {
30+
"onAutoForward": "ignore"
31+
},
2832
// Use 'initializeCommand' to run commands before the container is created.
2933
"initializeCommand": "chmod +x .devcontainer/commands/initialize.sh && .devcontainer/commands/initialize.sh",
3034
// Use 'postCreateCommand' to run commands after the container is created.

.devcontainer/devcontainer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"features": {
1818
"ghcr.io/devcontainers/features/git": {},
1919
"ghcr.io/devcontainers/features/common-utils": {},
20-
"ghcr.io/devcontainers/features/github-cli:1": {}
20+
"ghcr.io/devcontainers/features/github-cli:1": {},
21+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
2122
},
2223
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2324
"forwardPorts": [
@@ -26,6 +27,9 @@
2627
"ydb:8765",
2728
"prometheus:9090"
2829
],
30+
"otherPortsAttributes": {
31+
"onAutoForward": "ignore"
32+
},
2933
// Use 'initializeCommand' to run commands before the container is created.
3034
"initializeCommand": "chmod +x .devcontainer/commands/initialize.sh && .devcontainer/commands/initialize.sh",
3135
// Use 'postCreateCommand' to run commands after the container is created.

0 commit comments

Comments
 (0)