mac - docker 创建镜像添加本地代理
-
docker build 命令
docker-compose build \ --build-arg http_proxy=http://host.docker.internal:[代理端口] \ --build-arg https_proxy=http://host.docker.internal:[代理端口]
-
docker compose
build: context: . args: - http_proxy=http://host.docker.internall:[代理端口] - https_proxy=http://host.docker.internal:[代理端口]