-
Notifications
You must be signed in to change notification settings - Fork 892
Closed as not planned
Closed as not planned
Copy link
Description
Dockerfile:
FROM mcr.microsoft.com/devcontainers/php:7.4
RUN apt-get updateRunning the devcontainer fails with this error :
...
> [dev_container_auto_added_stage_label 2/4] RUN apt-get update:
#0 0.724 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
#0 0.815 Get:2 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
#0 0.912 Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
#0 1.069 Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
#0 1.133 Err:2 https://dl.yarnpkg.com/debian stable InRelease
#0 1.133 The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
#0 1.229 Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
#0 3.806 Get:6 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [236 kB]
#0 4.054 Get:7 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
#0 5.526 Reading package lists...
#0 6.467 W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
#0 6.467 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
...
This doesn't happen with newer versions (e.g. php:8)
Adding the following command before apt-get update fixes the problem :
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarn-archive-keyring.gpgRelated to #370
Yarn issue : yarnpkg/yarn#7866
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels