When I execute wget https://get.hacs.xyz
in docker container with http proxy, I got this error:
Connecting to 10.31.0.2:7890 (10.31.0.2:7890)
wget: server returned error: HTTP/1.1 502 Bad Gateway
Then I use apk add wget
to upgrade wget
, it works.
Docker image ID f1d32fc8ffc4
.
Docker compose
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
environment:
- http_proxy=http://10.31.0.2:7890
- https_proxy=http://10.31.0.2:7890
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host