Skip to content

Can't install docker-in-docker #1543

@mikoto2000

Description

@mikoto2000

I try this devcontainer.json.

Then, I got this error.

It says 1.560 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed. so I think the problem is with the apt certificate, but how can I resolve this?

 > [dev_containers_target_stage 5/5] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=docker-in-docker_0,target=/tmp/build-features-src/docker-in-docker_0     cp -ar /tmp/build-features-src/docker-in-docker_0 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/docker-in-docker_0  && cd /tmp/dev-container-features/docker-in-docker_0  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/docker-in-docker_0:
0.206 ===========================================================================
0.206 Feature       : Docker (Docker-in-Docker)
0.206 Description   : Create child containers *inside* a container, independent from the host's docker instance. Installs Docker extension in the container along with needed CLIs.
0.206 Id            : ghcr.io/devcontainers/features/docker-in-docker
0.206 Version       : 2.14.0
0.206 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-in-docker
0.206 Options       :
0.206     VERSION="latest"
0.206     MOBY="true"
0.206     MOBYBUILDXVERSION="latest"
0.206     DOCKERDASHCOMPOSEVERSION="v2"
0.206     AZUREDNSAUTODETECTION="true"
0.206     DOCKERDEFAULTADDRESSPOOL=""
0.206     INSTALLDOCKERBUILDX="true"
0.206     INSTALLDOCKERCOMPOSESWITCH="false"
0.206     DISABLEIP6TABLES="false"
0.206 ===========================================================================
0.211 (*) bookworm is supported for Moby installation  - setting up Microsoft repository
0.214 find: '/var/lib/apt/lists/*': No such file or directory
0.215 Running apt-get update...
0.336 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
0.353 Get:2 https://dl.yarnpkg.com/debian stable InRelease
0.382 Err:2 https://dl.yarnpkg.com/debian stable InRelease
0.382   The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
0.396 Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
0.417 Get:4 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
0.439 Get:5 http://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB]
0.727 Get:6 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [6924 B]
0.727 Get:7 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [292 kB]
1.280 Reading package lists...
1.560 W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
1.560 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
1.561 ERROR: Feature "Docker (Docker-in-Docker)" (ghcr.io/devcontainers/features/docker-in-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-in-docker for help troubleshooting this error.
------

Metadata

Metadata

Assignees

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