
镜像:registry.cn-hangzhou.aliyuncs.com/9527test/test:latest
mac 下写个测试 file
FROM xx RUN apt-get update 没问题。
同样的镜像,同样的 dockerfile ,linux 上就有问题。
Get:1 http://mirrors.ustc.edu.cn/ubuntu jammy InRelease [270 kB] Get:2 http://mirrors.ustc.edu.cn/ubuntu jammy-updates InRelease [114 kB] Get:3 http://mirrors.ustc.edu.cn/ubuntu jammy-backports InRelease [99.8 kB] Get:4 http://mirrors.ustc.edu.cn/ubuntu jammy-security InRelease [110 kB] Get:5 https://launchpad.proxy.ustclug.org/ondrej/php/ubuntu jammy InRelease [23.9 kB] Err:1 http://mirrors.ustc.edu.cn/ubuntu jammy InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C Err:2 http://mirrors.ustc.edu.cn/ubuntu jammy-updates InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C macdocker Docker version 20.10.17 linuxdocker Docker version 20.10.2
1 julyclyde 2022-10-18 08:46:07 +08:00 那就很奇怪了 难道 docker 把新版本的 apt key 注入到镜像内了?这可是入侵行为啊 |
2 dzdh OP @julyclyde 搜了一下。是说什么。ubuntu jammy 调用 aptkey 调用 syscalls 然后旧版的 docker 不支持 |
4 dzdh OP |
5 julyclyde 2022-10-18 14:03:17 +08:00 |