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

14 Replies, 1868 Views

Hey! If you’re trying to quickly add docker container to network proxy, I’d recommend using Squid as your proxy server. It’s lightweight and works great with Docker.

Here’s a quick command:
`docker run --env HTTP_PROXY=http://squid-proxy:3128 your-image`

You can also check out mitmproxy if you need more advanced features.

Messages In This Thread



Users browsing this thread: 1 Guest(s)