VirtualBox + Vagrant 搭建含docker的虚拟机centos/7

	vboxmanage --version
	mkdir ~/centos7

	cd centos7

	vagrant init centos/7
	more Vagrantfile
  • 运行虚拟机
	vagrant up
  • 终端链接虚拟机
	vagrant ssh
  • 更新软件
	sudo yum update
  • 断开和虚拟机的链接
	exit
  • 查看宿主机中虚拟机的状态
	vagrant status
  • 虚拟机关机
	vagrant halt
  • 销毁虚拟机
	vagrant destroy
发布了75 篇原创文章 · 获赞 32 · 访问量 4434

猜你喜欢

转载自blog.csdn.net/Brannua/article/details/105210951