Skip to content

Commit

Permalink
add more
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopeng163 committed Feb 19, 2018
1 parent 592bffc commit e149328
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 实验环境常见问题汇总.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@

https://www.vagrantup.com/docs/virtualbox/

# Vagrant虚机已创建,但是发现Docker未安装成功

所谓Vagrant虚机已创建,就是大家运行完Vagrant up,然后通过vagrant status查看,状态是running

```
$ vagrant status
Current machine states:
docker-host running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
```

但是通过Vagrant ssh docker-host进到里面去,发现docker并未安装成功。解决步骤如下:

1. 退出当前vagrant host
2. 运行 vagrant up --provision 重新安装docker试试
3. 如果安装还是失败,建议大家试试Docker的国内源,在vagrant host里运行 curl -sSL https://get.daocloud.io/docker | sh

# 多章节实验环境并存

理论上讲,我们完成一章的学习会把这一章的Vagrant实验环境清理掉,通过(vagrant destroy)。
Expand Down

0 comments on commit e149328

Please sign in to comment.