English 中文(简体)
• 结晶体
原标题:Getting docker-compose TypeError: kwargs_from_env() got an unexpected keyword argument ssl_version in GitLab

I m using GitLab CICD, in docker-test stage as defined docker_test: image: docker:stable services: - docker:stable-dind stage: docker-test ...

yesterday worked fine, but today - GitLab pipeline docker_test fails with: TypeError: kwargs_from_env() got an unexpected keyword argument ssl_version

I ve found on the internet that it could be an upgrade to 7.0.0 https://docker-py.readthedocs.io/en/stable/change-log.html

其中有些人建议(为不同的设置)降级为6.3.1。

After searching - have no idea how to do that. Maybe there are other solutions to this?

问题回答

https://github.com/docker/docker-py/issues/3194” rel=“nofollow noreferer”>docker-py :

Docker 1 做了改动,打破了Docker Compose v1 written in-030(pip 安装了 do-compose,可在docker-compose上查阅。 它是在Go实施的Docker Compose v2所取代的,OOB是docker compose(sub-command)。

永久固定:转用Docker Compose v2 (无需额外安装,改为migration docs to 固定兼容性问题)。

临时固定装置:在与Docker Compose(v1)。

1. Docker s python Packper:docker-py=7.0.0; not the real docker binary which is written in Go.

Credit: Tim Panohos s answer for the issue link.

注:有人要求提供后向兼容性,但不能确定是否接受。

https://github.com/docker/docker-py/issues/3194#issuecomment-1848950456"rel=“nofollow noreferer”

I got it to work by reverting the suggested change in the utils.py i.e. sudo nano ./usr/local/lib/python3.9/dist-packages/docker/utils/utils.py

调查结果:从_env (environment=None)中解冻:(见档案记录器/利用/利用/利用。

增 编 kwargs_from_env(environment=None, ssl_version=None)

然而,我认为,它为什么被贬低,而且可能是由于担心而演变——因此,我会试图让你的项目回来......?

Thanks, everyone for the great ideas. This is how we ve solved the problem:

由于我们不想降级为6.1.3,我们去掉并更换了<条码>多克-相竞至<条码>多克堆肥/条码>厘米,但是由于没有任何支持的论点――f.yml 。

很显然,在GiteLab CI/CD中,我们使用了像3年前所建的图像“cker器:最新”,它支持了18岁的 do客户。 th

finally, we switched the image to image: docker:20.10.24 services: - docker:20.10.24-dind that we understood as the real latest stable version.

在清理以前的一些相容性 ha时,它做了罚款。





相关问题
Unable to connect to docker container inside windows server

As title. I am developing a system with many docker images with ASP.Net MVC core projects. I am publishing these docker images into a docker engine installed on Windows Server OS, and I found that I ...

Only can see postgreSQL as an admin

After installed Wsl and Docker, can t access PSQL and other things. I was studying Docker, and installed the latest version. So far so good, I received an error about the WSL version, saw some ...

make docker-compose block until healthy without `depends_on`

I am working with a team that uses docker-compose to start a set of helper services, but does not use docker when the code is being developed. Here, docker-compose is just a convenient way to run the ...

change grafana port using docker host network

I am trying to spin up a grafana container in docker, however my setup in docker does not allow ipv4 forwarding and thus I cannot use the default bridge network in docker. All I can use is the host ...

Pip instalation for Python 3.11 in docker

I have Dockerfile to build image for Django project that uses Python 3.11 and runs in poetry environment (see content below). Problem is when I try to donwload get-pip.py file and run it using Python, ...

在 Dockerfile 中运行 composer install

我正在尝试将我的Laravel应用程序进行Docker化。 该应用程序已经构建并在Git中,但我将vendor文件夹添加到了.gitignore中。 我添加了一个Dockerfile,看起来像这样: FROM php:7.1-fpm-alpine RUN apk update ...