How can I quickly add a Docker container to a network proxy?

14 Replies, 1557 Views

I had the same issue, and honestly, the easiest way to quickly add docker container to network proxy is by using Docker Compose.

Just add this to your `docker-compose.yml`:
```yaml
environment:
HTTP_PROXY: http://proxy:port
HTTPS_PROXY: http://proxy:port
```

This way, you don’t have to mess with CLI commands every time.

Messages In This Thread



Users browsing this thread: 1 Guest(s)