diff options
Diffstat (limited to 'src/docker-in-docker')
-rw-r--r-- | src/docker-in-docker/devcontainer-feature.json | 16 | ||||
-rwxr-xr-x | src/docker-in-docker/install.sh | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/src/docker-in-docker/devcontainer-feature.json b/src/docker-in-docker/devcontainer-feature.json index ea8a6df..86e2b04 100644 --- a/src/docker-in-docker/devcontainer-feature.json +++ b/src/docker-in-docker/devcontainer-feature.json @@ -28,6 +28,22 @@ ], "default": "v1", "description": "Default version of Docker Compose (v1 or v2)" + }, + "enableNonRootDocker": { + "type": "boolean", + "default": true, + "description": "Enable non-root Docker access in container" + }, + "username": { + "type": "string", + "proposals": [ + "vscode", + "codespace", + "none", + "automatic" + ], + "default": "automatic", + "description": "Enter name of non-root user to configure or none to skip" } }, "entrypoint": "/usr/local/share/docker-init.sh", diff --git a/src/docker-in-docker/install.sh b/src/docker-in-docker/install.sh index a67aaba..cfc78bc 100755 --- a/src/docker-in-docker/install.sh +++ b/src/docker-in-docker/install.sh @@ -12,8 +12,8 @@ DOCKER_VERSION=${VERSION:-"latest"} # The Docker/Moby Engine + CLI should match USE_MOBY=${MOBY:-"true"} DOCKER_DASH_COMPOSE_VERSION=${DOCKERDASHCOMPOSEVERSION:-"v1"} # v1 or v2 -ENABLE_NONROOT_DOCKER=${ENABLE_NONROOT_DOCKER:-"true"} -USERNAME=${USERNAME:-"automatic"} +ENABLE_NONROOT_DOCKER=${ENABLENONROOTDOCKER} +USERNAME=${USERNAME} MICROSOFT_GPG_KEYS_URI="https://packages.microsoft.com/keys/microsoft.asc" DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES="buster bullseye bionic focal jammy" |