Yo, I feel you! I was stuck on this too. Honestly, the simplest way is to use `--env` like you mentioned.
Here’s what I did:
`docker run --env HTTP_PROXY=http://proxy.example.com:8080 --env HTTPS_PROXY=http://proxy.example.com:8080 my-container`
If you’re using Docker Compose, you can add these vars in the `environment` section. Super easy and no need to rewrite anything.
Here’s what I did:
`docker run --env HTTP_PROXY=http://proxy.example.com:8080 --env HTTPS_PROXY=http://proxy.example.com:8080 my-container`
If you’re using Docker Compose, you can add these vars in the `environment` section. Super easy and no need to rewrite anything.
