[英]Error executing docker-compose: Building webserver unable to prepare context: unable to 'git clone' to temporary context directory: error fetching
I'm following this Apache Airflow tutorial and I'm failing to execute我正在关注这个Apache Airflow 教程,但我无法执行
docker-compose up -d
command.命令。 I get following error:
我收到以下错误:
Building webserver
unable to prepare context: unable to 'git clone' to temporary context directory: error fetching: /usr/lib/git-core/git-remote-https: /tmp/_MEItH0v3Q/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /lib/x86_64-linux-gnu/libssh.so.4)
: exit status 128
ERROR: Service 'webserver' failed to build
I'm using Ubuntu 20.04 on WSL2 .我在 WSL2 上使用Ubuntu 20.04 。
I've installed exactly that version of OPEN SSL - OPENSSL_1_1_1 but error remains.我已经安装了该版本的 OPEN SSL - OPENSSL_1_1_1 但错误仍然存在。 I've also updated git to 2.30.2 because I've read it could fix it but no luck.
我还将 git 更新为 2.30.2,因为我读过它可以修复它但没有运气。
I've just encountered the same problem.我刚刚遇到了同样的问题。 I'm only starting with docker and airflow, so I can't really say why this fix works, but it works, so here it is:
我只是从 docker 和 airflow 开始,所以我不能说为什么这个修复有效,但它有效,所以这里是:
Change in docker-compose.yaml
a tag for puckel/docker-airflow
from 1.10.1
to 1.10.9
. docker-compose.yaml 将
puckel/docker-airflow
docker-compose.yaml
的标签从1.10.1
更改为1.10.9
。
Your webserver section in docker-compose.yaml file should start like this: docker-compose.yaml 文件中的 webserver 部分应该像这样开始:
webserver:
image: puckel/docker-airflow:1.10.9
build:
context: https://github.com/puckel/docker-airflow.git#1.10.9
dockerfile: Dockerfile
Also getting this after downloading a fresh docker-compose
version.在下载新的
docker-compose
版本后也会得到这个。 I'm also on Ubuntu 20.04.2 LTS, docker-compose version 1.29.1, build c34c88b2
.我也在 Ubuntu 20.04.2 LTS,
docker-compose version 1.29.1, build c34c88b2
。
Downgrading to 1.27.4
"resolve" the error…降级到
1.27.4
“解决”错误……
Isn't it supposed to be statically linked?它不应该是静态链接的吗?
I had the same issue.我遇到过同样的问题。 Apparently this is a known bug for docker-compose 1.29 and Ubuntu 20 [1]
显然这是 docker-compose 1.29 和 Ubuntu 20 [1] 的已知错误
My docker-compose
was installed using curl .我的
docker-compose
是使用 curl 安装的。
What worked for me was removing docker-compose
and install it using pip instead:对我有用的是删除
docker-compose
并使用 pip 安装它:
sudo rm /usr/local/bin/docker-compose
pip3 install docker-compose
After that everything worked as expected.之后,一切都按预期进行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.