devcontainer: enable accessing host Docker socket
This commit is contained in:
parent
af9f89a7f5
commit
af87ba5ed1
@ -6,6 +6,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/workspace:cached
|
- ..:/workspace:cached
|
||||||
|
- /var/run/docker.sock:/var/run/docker-host.sock
|
||||||
command: sleep infinity
|
command: sleep infinity
|
||||||
memcached:
|
memcached:
|
||||||
image: memcached:latest
|
image: memcached:latest
|
||||||
|
@ -13,5 +13,8 @@
|
|||||||
"postCreateCommand": ".devcontainer/boot.sh",
|
"postCreateCommand": ".devcontainer/boot.sh",
|
||||||
"forwardPorts": [
|
"forwardPorts": [
|
||||||
4567
|
4567
|
||||||
]
|
],
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user