I’m running apache superset docker-compose in an isolated environment.
Problem is that node container exits just after start with error:
root@S-NSK90-APP0167:~# docker logs superset_node
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Err:1 http://deb.debian.org/debian buster InRelease
Could not connect to debian.map.fastlydns.net:80 (146.75.118.132), connection timed out Unable to connect to deb.debian.org:http:
Err:2 http://deb.debian.org/debian-security buster/updates InRelease
Unable to connect to deb.debian.org:http:
Err:3 http://deb.debian.org/debian buster-updates InRelease
Unable to connect to deb.debian.org:http:
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Could not connect to debian.map.fastlydns.net:80 (146.75.118.132), connection timed out Unable to connect to deb.debian.org:http:
W: Failed to fetch http://deb.debian.org/debian-security/dists/buster/updates/InRelease Unable to connect to deb.debian.org:http:
W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease Unable to connect to deb.debian.org:http:
W: Some index files failed to download. They have been ignored, or old ones used instead.
I tried to make docker use proxy. Proxy is configured:
- I can reach internet this way:
curl -x http://127.0.0.1:18080 http://www.google.com
- Docker environment is configured
systemctl show --property=Environment docker
Environment=HTTP_PROXY=http://127.0.0.1:18080 HTTPS_PROXY=http://127.0.0.1:18080 NO_PROXY=localhost,127.0.0.0/8,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12
- I run docker-compose specifying proxy explicitly:
HTTP_PROXY=http://127.0.0.1:18080 docker-compose up --build -d
- Proxy is declared in the Dockerfile
FROM node:16-slim AS superset-node
ENV https_proxy=http://127.0.0.1:18080
ENV http_proxy=http://127.0.0.1:18080
- Docker Compose has the environment variables:
superset-node:
image: node:16
container_name: superset_node
command: ["/app/docker/docker-frontend.sh"]
env_file: docker/.env
depends_on: *superset-depends-on
volumes: *superset-volumes
environment:
- HTTPS_PROXY=http://127.0.0.1:18080
- HTTP_PROXY=http://127.0.0.1:18080
How could I fix the error?