在无业游民中安装Docker [英] Install docker in vagrant
问题描述
我试图将docker安装在一个无聊的盒子中,我按照docker网站上的步骤进行操作
I am trying to install docker in a vagrant box, I followed the steps on the docker website
但是当我在docker /目录中运行无聊的时候通过git下载我得到此错误消息。
But when I run vagrant up in the docker/ directory that is downloaded through git I get this error message.
以下Vagrantfile中存在语法错误。为方便起见,以下复制了
语法错误:
"There is a syntax error in the following Vagrantfile. The syntax error message is reproduced below for convenience:
/docker/Vagrantfile:146: syntax error, unexpected ':', expecting kEND
override.vm.synced_folder ".", "/vagrant", disabled: true"
如何我要解决这个问题以便我可以连接到无业游民的盒子,我得到的消息是我运行命令 vagrant ssh
How do I resolve this so that I can connect into the vagrant box, I get the same message is I run the command "vagrant ssh"
推荐答案
在最新版本的 vagrant
中,泊坞窗配置程序现在可以支持 docker
。尝试: http://docs.vagrantup.com/v2/provisioning/docker.html
In the last version of vagrant
,the docker provisioner can support docker
now. Try it: http://docs.vagrantup.com/v2/provisioning/docker.html
这篇关于在无业游民中安装Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!