I am trying to set a proxy at the container level and can’t seem to get it to work. The overall goal of the solution is to be able to deploy a multi-container solution with one container set as the proxy for outbound http traffic. Because there are multiple containers, and because the proxy is intended to be to a local container, it doesn’t makes sense to set a proxy for the entire VM/Client.
I thought this was possible given the following docs: https://docs.docker.com/network/proxy/ but it just doesn’t seem to work. I have tried to use the runtime environment variables when starting the container that I want to use the proxy but they are simply ignored.
I’ve tried this with several containers, namely node.js, java and vertx. None of them utilize the proxy settings that I am setting when I start the container. I am doing this on a mac.
Is it possible to set a proxy at the container level?