Skip to content

docker-outside-of-docker feature fails due to signature invalid #419

@bigtallcampbell

Description

@bigtallcampbell

The docker-outside-of-docker feature fails to install when using a dotnet6.0 based container.

Error log:

[dev_containers_target_stage 3/3] RUN cd /tmp/build-features/docker-outside-of-docker_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh:
#0 0.369 ===========================================================================
#0 0.369 Feature       : Docker (docker-outside-of-docker)
#0 0.369 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.
#0 0.369 Id            : ghcr.io/devcontainers/features/docker-outside-of-docker
#0 0.369 Version       : 1.0.9
#0 0.369 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
#0 0.369 Options       :
#0 0.369     VERSION="latest"
#0 0.369     MOBY="true"
#0 0.369     DOCKERDASHCOMPOSEVERSION="v1"
#0 0.369     ENABLENONROOTDOCKER="true"
#0 0.369 ===========================================================================
#0 0.856 DOCKER_MOBY_ARCHIVE_VERSION_CODENAMES=buster bullseye bionic focal jammy
[2023-01-24T22:58:44.089Z] #0 0.856 Distro codename  'bullseye'  matched filter  'buster bullseye bionic focal jammy'
#0 0.857 MICROSOFT_GPG_KEYS_URI=https://packages.microsoft.com/keys/microsoft.asc
#0 0.974 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
#0 0.979 Get:2 https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye InRelease [10.5 kB]
#0 0.979 Get:3 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
#0 0.992 Get:4 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
#0 1.027 Get:5 https://packages.microsoft.com/repos/microsoft-debian-bullseye-prod bullseye/main amd64 Packages [110 kB]
#0 1.047 Get:6 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
#0 1.103 Get:7 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
#0 1.136 Err:3 https://dl.yarnpkg.com/debian stable InRelease
#0 1.136   The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
#0 1.214 Get:8 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [216 kB]
#0 1.289 Get:9 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
#0 1.992 Reading package lists...
[2023-01-24T22:58:44.089Z] #0 2.331 W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
#0 2.331 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
#0 2.332 ERROR: Feature "Docker (docker-outside-of-docker)" (ghcr.io/devcontainers/features/docker-outside-of-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker for help troubleshooting this error.
------

Devcontainer.Json snippet:

"features": {
		"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
			"version": "latest",
			"enableNonRootDocker": "true",
			"moby": "true"
		}
	}

Dockerfile:

ARG DOTNET_CONTAINER_VARIANT="6.0-bullseye-slim"
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:0-${DOTNET_CONTAINER_VARIANT}
#FROM mcr.microsoft.com/dotnet/sdk:6.0

Changing base container to mcr.microsoft.com/dotnet/sdk:6.0 does work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions