gpt4 book ai didi

vagrant - 从ubuntu的终端启动 'hashicorp/precise32'时找不到框 'vagrant up'

转载 作者:行者123 更新时间:2023-12-04 04:25:20 25 4
gpt4 key购买 nike

我已经安装了Vagrant,一旦从终端进入项目文件夹,就会触发以下命令:

  • vagrant box add hashicorp/precise32 http://files.vagrantup.com/precise32.box

  • 输出:
    [vagrant] Downloading with Vagrant::Downloaders::HTTP... 
    [vagrant] Downloading box: files.vagrantup.com/precise32.box
    [vagrant] Downloading box: hashicorp-files.vagrantup.com/precise32.box
    [vagrant] Extracting box...
    [vagrant] Verifying box...
    [vagrant] Cleaning up downloaded box...
  • vagrant init hashicorp/precise32

  • 输出: A Vagrantfile has been placed in this directory
  • vagrant up

  • 我收到一条错误消息:
    The box 'hashicorp/precise32' could not be found

    最佳答案

    您需要做的就是编辑 Vagrant 文件,并定义vm.box_url和vm.box选项,如下所示。

    config.vm.box_url =“http://files.vagrantup.com/precise32.box

    config.vm.box =“precise32”

    然后运行“ vagrant up

    关于vagrant - 从ubuntu的终端启动 'hashicorp/precise32'时找不到框 'vagrant up',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28340781/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com