vagrant 搭建開發環境

虛擬機盒子地址docker

https://app.vagrantup.com/boxes/searchcentos


vagrant up


修改配置vagrant init hirocom/centos7.2

config.vm.network "forwarded_port", guest: 22, host: 2222, id: "ssh", disabled: "true"
config.vm.network "forwarded_port", guest: 22, host: 7777
config.vm.network "private_network", ip: "192.168.33.70"
config.vm.synced_folder "d:/docker/www", "/www"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 2
endapp

 

vagrant reload ssh

相關文章
相關標籤/搜索