I want to build my image using custom Dockerfile
. It should be connected to a proxy to download some files. I there anyway to do that?
In my case, both the bash environment and --env
parameter not work.
It seems outdated. One should use the --build-arg
parameter to specify the proxies just like docker build
does:
podman build \
--build-arg "HTTP_PROXY=http://proxy.ip:port" \
--build-arg "HTTPS_PROXY=http://proxy.ip:port" \
--build-arg "NO_PROXY=localhost,127.0.0.1" \
-t image:tag .