mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
27 lines
1.1 KiB
JSON
27 lines
1.1 KiB
JSON
{
|
|
"name": "container.training environment to get started with Docker and/or Kubernetes",
|
|
"image": "ghcr.io/jpetazzo/shpod",
|
|
"features": {
|
|
//"ghcr.io/devcontainers/features/common-utils:2": {}
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
"forwardPorts": [],
|
|
|
|
//"postCreateCommand": "... install extra packages...",
|
|
"postStartCommand": "dind.sh ; kind.sh",
|
|
|
|
// This lets us use "docker-outside-docker".
|
|
// Unfortunately, minikube, kind, etc. don't work very well that way;
|
|
// so for now, we'll likely use "docker-in-docker" instead (with a
|
|
// privilege dcontainer). But we're still exposing that socket in case
|
|
// someone wants to do something interesting with it.
|
|
"mounts": ["source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"],
|
|
|
|
// This is for docker-in-docker.
|
|
"privileged": true,
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
"remoteUser": "k8s"
|
|
}
|