diff options
Diffstat (limited to 'src/docker-outside-of-docker')
-rw-r--r-- | src/docker-outside-of-docker/devcontainer-feature.json | 2 | ||||
-rwxr-xr-x | src/docker-outside-of-docker/install.sh | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/docker-outside-of-docker/devcontainer-feature.json b/src/docker-outside-of-docker/devcontainer-feature.json index 841bb62..2b75aa4 100644 --- a/src/docker-outside-of-docker/devcontainer-feature.json +++ b/src/docker-outside-of-docker/devcontainer-feature.json @@ -1,6 +1,6 @@ { "id": "docker-outside-of-docker", - "version": "1.2.0", + "version": "1.2.1", "name": "Docker (docker-outside-of-docker)", "documentationURL": "https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker", "description": "Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.", diff --git a/src/docker-outside-of-docker/install.sh b/src/docker-outside-of-docker/install.sh index 9d8433a..f32db2f 100755 --- a/src/docker-outside-of-docker/install.sh +++ b/src/docker-outside-of-docker/install.sh @@ -261,11 +261,13 @@ if ! grep -qE '^docker:' /etc/group; then groupadd --system docker fi +# Remarking this out to restore functionality in Azure VMs. ID 999 is a reserved group ID # Ensure docker group gid is 999 -if [ "$(getent group docker | cut -d: -f3)" != "999" ]; then - echo "(*) Updating docker group gid to 999..." - groupmod -g 999 docker -fi +# if [ "$(getent group docker | cut -d: -f3)" != "999" ]; then +# echo "(*) Updating docker group gid to 999..." +# groupmod -g 999 docker +# fi + usermod -aG docker "${USERNAME}" |