gpt4 book ai didi

docker - 无法使用前端 xxx : rpc error: code = Unknown desc = (. ..) 解决: `exit status 2: gpg: decryption failed: No secret key`

转载 作者:行者123 更新时间:2023-12-02 18:07:50 34 4
gpt4 key购买 nike

我想使用 Docker BuidlKit 的一项实验性功能 (mount=type=cache)

我的 Dockerfile 的第一行是:

    # syntax=docker/dockerfile:experimental    FROM i386/debian:buster    #    # Setup an apt cache for Docker (experimental)    #    RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache    RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt apt update && apt-get --no-install-recommends install -y gcc

我已经为 docker 设置了一个密码存储,成功登录到 docker hub,我的 PATH 中的“docker-credential-pass”二进制文件,设置“使用加密密码的 docker 登录过程”。(如中所述

"How to Enable Docker Experimental Features and Encrypt Your Login Credentials"

    kalou@shinwey $ pass list    Password Store    `-- docker-credential-helpers        |-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx        |   `-- berryamin        `-- docker-pass-initialized-check

但是当我启动镜像构建时,该过程失败并显示:

    DOCKER_BUILDKIT=1 docker build -t minexpert2:0.1 .    [+] Building 0.5s (3/3) FINISHED     => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                        0.1s     => => transferring dockerfile: 38B                                                                                                                                                                                                                                                       0.0s     => [internal] load .dockerignore                                                                                                                                                                                                                                                     0.1s     => => transferring context: 2B                                                                                                                                                                                                                                                       0.0s     => ERROR resolve image config for docker.io/docker/dockerfile:experimental                                                                                                                                                                                                           0.4s    ------     > resolve image config for docker.io/docker/dockerfile:experimental:    ------    failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc     error: code = Unknown desc = error getting credentials - err: exit status 1, out: `exit status 2: gpg: decryption failed: No secret key`

有人可以帮助解释这里缺少什么吗?

最佳答案

尝试先下载 docker 镜像并运行构建镜像的命令,它对我有用

关于docker - 无法使用前端 xxx : rpc error: code = Unknown desc = (. ..) 解决: `exit status 2: gpg: decryption failed: No secret key`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61262030/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com