Первый раз такое встречаю. Новый сервер Ubuntu. Установил docker, docker-compose. При попытке поднять docker container, не может установить зависимости pip.
Ошибка такая:
Requirement already satisfied: pip in /usr/local/lib/python3.9/site-packages (23.0.1)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/pip/
Dockec compose
version: '3.8'
services:
test:
container_name: test
build:
context: .
dockerfile: ./Dockerfile
image: test:1.0.0
restart: always
volumes:
- ./:/code/
networks:
- test
networks:
test:
name: test
driver: bridge
Dockerfile
FROM python:3.9
WORKDIR /code
COPY . .
ENTRYPOINT ["./entrypoint.sh"]
entrypoint.sh
#!/bin/bash
chmod +x entrypoint.sh
pip install --upgrade pip && pip install -r requirements.txt
python main.py
На всякий случай
/etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search openstacklocal