vagrant 好像不能拉取公共镜像?

2018-02-13 21:10:35 +08:00
 zjsxwc

我刚想用最新的 debian,但是现在好像不行了:

$ cat Vagrantfile 
Vagrant.configure("2") do |config|
  config.vm.box = "debian/stretch64"
end

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'debian/stretch64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
The box 'debian/stretch64' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/debian/stretch64"]
Error: The requested URL returned error: 404 Not Found

这个报错提醒我用vagrant login先登录,但是https://atlas.hashicorp.com根本没有注册账号的入口也就登录不了,成了个死循环,我是不是哪里弄错了?我要怎么做?

2136 次点击
所在节点    程序员
3 条回复
NewJoy7
2018-02-13 22:49:15 +08:00
更新到最新的 vagrant 吧,前一段时间折腾过.

或者
NewJoy7
2018-02-13 22:49:47 +08:00
export VAGRANT_SERVER_URL='https://vagrantcloud.com'
zjsxwc
2018-02-13 23:08:43 +08:00
@NewJoy7

真的解决了,更新最新的 vagrant 就好了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/430635

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX