E: gnupg, gnupg2 和 gnupg1 好像没有安装,但是这个操作需要其中之一 [英] E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

查看:570
本文介绍了E: gnupg, gnupg2 和 gnupg1 好像没有安装,但是这个操作需要其中之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Windows 10 专业版上安装了 docker.我在 git-bash 中运行以下命令时遇到问题.

I have installed docker on windows 10 pro. I am facing an issue while running the following command in git-bash.

docker-compose up -d --build

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

推荐答案

在你的 Dockerfile 中,先运行这个:

In your Dockerfile, run this first:

apt-get update && apt-get install -y gnupg2

apt-get update && apt-get install -y gnupg

这篇关于E: gnupg, gnupg2 和 gnupg1 好像没有安装,但是这个操作需要其中之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆