Docker构build失败:add-apt-repository -y ppa:比特币/比特币
这是我的dockerfile
FROM ubuntu:rolling RUN apt-get -y update && \ apt-get -y upgrade && \ apt-get -y install software-properties-common && \ add-apt-repository -y ppa:bitcoin/bitcoin && \ apt-get -y update && \ apt-get -y install bitcoin-qt
我运行docker build -t test .
这是因为:(失败的输出是当我定义单独的运行步骤,所以我可以很容易地定义它出错了)。
Step 5/11 : RUN add-apt-repository -y ppa:bitcoin/bitcoin ---> Running in fc64322d6d04 gpg: keybox '/tmp/tmpxbk1iw0_/pubring.gpg' created gpg: keyserver receive failed: End of file Failed to add key. The command '/bin/sh -c add-apt-repository -y ppa:bitcoin/bitcoin' returned a non-zero code: 1
我错过了什么? 我不是在代理的背后。