Open Skidder1337 opened 4 weeks ago
it seems there is an issue between your system and pip - https://github.com/pypi/warehouse/issues/15277 try switching to IPv4 or using mirrors
it seems there is an issue between your system and pip - pypi/warehouse#15277 try switching to IPv4 or using mirrors
can u give a way to fix it? i am a starter for docker
it seems there is an issue between your system and pip - pypi/warehouse#15277 try switching to IPv4 or using mirrors
i can install requests in the server but no in docker
judging by the error, the problem is not with docker, problem with the pypi infrastructure.
to ensure that, you can try to run in your "docker-host" machine:
pip install -r docker-generateconfig/env-requirements.txt
judging by the error, the problem is not with docker, problem with the pypi infrastructure. to ensure that, you can try to run in your "docker-host" machine:
pip install -r docker-generateconfig/env-requirements.txt
it works
you might be experiencing some connection issues with the internet in your Docker network. check if the container can access PyPI:
docker buildx build --tag generateconfig-env --file Dockerfile-generateconfig-env .
docker run --rm --volume ${PWD}/:/code/ -it --entrypoint /bin/sh generateconfig-env
# in container shell
apk add curl
curl https://pypi.org/simple/
you might be experiencing some connection issues with the internet in your Docker network. check if the container can access PyPI:
docker buildx build --tag generateconfig-env --file Dockerfile-generateconfig-env . docker run --rm --volume ${PWD}/:/code/ -it --entrypoint /bin/sh generateconfig-env # in container shell apk add curl curl https://pypi.org/simple/
yes it can
can you show the output of the command from the same container?
pip install -r requirements.txt -vvv
sorry, that was the wrong command. please press this one:
pip install -r docker-generateconfig/env-requirements.txt -vvv
sorry, that was the wrong command. please press this one:
pip install -r docker-generateconfig/env-requirements.txt -vvv
oh i tried docker buildx build --tag generateconfig-env --file Dockerfile-generateconfig-env . docker run --rm --volume ${PWD}/:/code/ -it --entrypoint /bin/sh generateconfig-env then i got
6.702 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fad080b6490>: Failed to establish a new connection: [Errno -3] Try again')': /simple/requests/
issues
try to edit this line: https://github.com/anyproto/any-sync-dockercompose/blob/main/Dockerfile-generateconfig-env#L5 like this:
RUN pip install -r requirements.txt -vvv
Log into Ubuntu as a user with sudo privileges.
Open the /etc/default/docker file for editing :
$ sudo nano /etc/default/docker
Add the following setting for Docker.
DOCKER_OPTS="--dns 8.8.8.8"
Save and close the file.
Restart the Docker daemon :
$ sudo systemctl restart docker
- Log into Ubuntu as a user with sudo privileges.
- Open the /etc/default/docker file for editing : $ sudo nano /etc/default/docker
- Add the following setting for Docker. DOCKER_OPTS="--dns 8.8.8.8"
- Save and close the file.
- Restart the Docker daemon : $ sudo systemctl restart docker
@Skidder1337 did this solve your problem?
Have you read a contributing guide?
Current Behavior
docker buildx build --tag generateconfig-env --file Dockerfile-generateconfig-env . [+] Building 45.5s (12/12) FINISHED docker:default => [internal] load build definition from Dockerfile-generateconfig-env 0.0s => => transferring dockerfile: 51B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => resolve image config for docker.io/docker/dockerfile:1 1.0s => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:a57df69d0ea827fb7266491f2813635de6f17269be881f696fbfdf2d83dda33e 0.0s => [internal] load build definition from Dockerfile-generateconfig-env 0.0s => [internal] load metadata for docker.io/library/python:3.11-alpine 0.0s => [internal] load .dockerignore 0.0s => [1/4] FROM docker.io/library/python:3.11-alpine 0.0s => [internal] load build context 0.0s => => transferring context: 104B 0.0s => CACHED [2/4] WORKDIR /code 0.0s => CACHED [3/4] COPY docker-generateconfig/env-requirements.txt requirements.txt 0.0s => ERROR [4/4] RUN pip install -r requirements.txt 44.3s
Expected Behavior
success
Steps To Reproduce
I use an ipv6 only server that uses warp to obtain ipv4
Environment
Anything else?
No response