vagrant-proxyconf 无法为 docker 设置代理

vagrant-proxyconf 无法为 docker 设置代理

我正在使用 vagrant 和 vagrant-proxyconf 为 vagrant box 配置代理。不幸的是,在 vagrant up 上它失败并停止在步骤“为 Docker 配置代理...”

错误信息是C:/Users/me/.vagrant.d/gems/2.4.4/gems/vagrant-proxyconf-2.0.0/lib/vagrant-proxyconf/action/configure_docker_proxy.rb:50:in `write': No such file or directory @ rb_sysopen - /tmp/vagrant-proxyconf-docker-config.json (Errno::ENOENT)

知道如何解决这个问题吗?这个问题发生在新安装的 Win10 笔记本电脑上,因此 Vagrant 和 VirtualBox 目前是最新版本。

为了完整性,这里列出发生故障之前的输出:

==> csbox: Running 'pre-boot' VM customizations...
==> csbox: Booting VM...
==> csbox: Waiting for machine to boot. This may take a few minutes...
csbox: SSH address: 127.0.0.1:2222
csbox: SSH username: vagrant
csbox: SSH auth method: private key
==> csbox: Machine booted and ready!
==> csbox: Configuring proxy for Apt...
==> csbox: Configuring proxy for Docker...
C:/Users/me/.vagrant.d/gems/2.4.4/gems/vagrant-proxyconf-2.0.0/lib/vagrant-proxyconf/action/configure_docker_proxy.rb:50:in `write': No such file or directory @ rb_sysopen - /tmp/vagrant-proxyconf-docker-config.json (Errno::ENOENT)

相关内容