Vagrantfile
if Vagrant.has_plugin?("vagrant-proxyconf") config.proxy.http = "http://xxx:3128" config.proxy.https = "http://xxx:3128" config.proxy.no_proxy = "localhost,127.0.0.1,aaa,bbb" end
プロキシ設定するプラグインを入れてからvagrant upする
その前にプロキシ設定しないとプラグインが落ちてこない
set http_proxy=http://xxx:3128 set https_proxy=http://xxx:3128 vagrant plugin install vagrant-proxyconf vagrant up
Dockerfile
ENV http_proxy http://xxx:3128/ ENV https_proxy http://xxx:3128/
{ "insecure-registries":["aaa:5000","bbb:5000"] }
service docker restart docker-compose up