FROM ubuntu:18.04
RUN apt-get update -y
RUN apt-get install -y qemu-kvm libvirt-daemon-system libvirt-dev
RUN apt-get install -y linux-image-$(uname -r)
RUN apt-get install -y curl net-tools jq
RUN apt-get autoclean
RUN apt-get autoremove
RUN curl -O https://releases.hashicorp.com/vagrant/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')/vagrant_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')_x86_64.deb
RUN dpkg -i vagrant_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')_x86_64.deb
RUN vagrant plugin install vagrant-libvirt
RUN vagrant box add --provider libvirt peru/windows-10-enterprise-x64-eval
RUN vagrant init peru/windows-10-enterprise-x64-eval
COPY startup.sh /
ENTRYPOINT ["/startup.sh"]朋友们,大家好!执行命令时Dockerfile崩溃:Dockerfile。
错误13/15运行“在秘鲁/windows中运行迷航器”-10-enterprise-x64-eval 2.9s 13/15运行迷航器init秘鲁/windows-10-enterprise-x64-eval:迷航器在非常早期阶段未能初始化:可执行的'cmd.exe‘vagrant试图运行的路径变量中没有找到。这是个错误。请确认此软件是否已安装并安装在路径上。
我的主机在windows 10上
怎么修呢?
一般情况下,是否有可能实现这一点,什么才能奏效?
发布于 2021-12-29 20:09:19
问题所在
这可能是显而易见的。但只是为了确保:
它在初始化时遇到了绊脚石:
RUN vagrant init peru/windows-10-enterprise-x64-eval在尝试将其添加为libvirt-provider之后:
RUN vagrant box add --provider libvirt peru/windows-10-enterprise-x64-eval如果我去利布维特文献,我就找不到你想要使用的符号。
解决建议
试着用以下内容替换这一行:
RUN vagrant box add peru/windows-10-enterprise-x64-eval --provider libvirt..。如果提供者标志需要出现在名称后面。
https://stackoverflow.com/questions/70520091
复制相似问题