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.
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.
