Sai*_*aif 72 docker docker-compose
我在windows 10 pro上安装了docker.我在git-bash中运行以下命令时遇到了问题.
docker-compose up -d --build
并得到以下错误.
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
(23) Failed writing body
Error executing command, exiting
ERROR: Service 'web' failed to build: The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_8.x | bash' returned a non-zero code: 1
Run Code Online (Sandbox Code Playgroud)
任何帮助深表感谢.提前致谢.
Ton*_*yil 77
在Dockerfile中,首先运行:
RUN apt-get update && apt-get install -y gnupg2
Run Code Online (Sandbox Code Playgroud)
小智 34
我遇到了同样的问题:
E:似乎没有安装gnupg,gnupg2和gnupg1,但此操作需要其中一个
我通过使用以下命令解决:
apt-get update
apt-get install gnupg
Run Code Online (Sandbox Code Playgroud)
gmo*_*ode 30
除了现有的答案:
RUN apt-get update && apt-get install -y gnupg
Run Code Online (Sandbox Code Playgroud)
-y flag在安装过程中同意条款.重要的是不要破坏构建
Just install the updated versions of all of them.
apt-get install -y gnupg2 gnupg gnupg1
归档时间: |
|
查看次数: |
42531 次 |
最近记录: |