Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] pip install via docker context fails with CERTIFICATE_VERIFY_FAILED #12346

Open
mdv27 opened this issue Dec 3, 2024 · 4 comments
Open
Assignees
Labels

Comments

@mdv27
Copy link

mdv27 commented Dec 3, 2024

Description

Getting below error when tried to install a package:

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: {some_url}(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1133)')))

Steps To Reproduce

No response

Compose Version

Docker Environment


Anything else?

Pip install works in wsl outside docker context, fails in docker context.

@glours
Copy link
Contributor

glours commented Dec 3, 2024

Hey @mdv27
Can you please give more details, what are you trying to do? Can you share a simple repro case?
Can you also please feel the Compose version you're using

Honestly we can't do anything to help you with so few informations

@mdv27
Copy link
Author

mdv27 commented Dec 3, 2024

docker version: 27.3.1
docker compose version: v2.20.3
package to be installed: https://github.com/bldaidev/django-reversion-archive/archive/master.zip#egg=django-reversion

It works in wsl outside docker context, fails in docker context.

@glours
Copy link
Contributor

glours commented Dec 3, 2024

@mdv27 ok but does it fail when building a service (docker compose build)? When doing a Compose up command? What your Compose and Docker files look like?

@glours glours self-assigned this Dec 3, 2024
@ndeloof
Copy link
Contributor

ndeloof commented Dec 3, 2024

Please also confirm issue can't be reproduced with a plain docker build for same Dockerfile, and is specific to Docker Compose

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants