1实蔽, docker for windows 安裝
2纺铭, docker machine安裝
3剃浇, virtualbox + vagrant 快速搭建
- 安裝centos7
mkdir centos
cd centos
#創(chuàng)建Vagrantfile俄占,可以到https://app.vagrantup.com/boxes/search
vagrant init centos/7
vagrant up
vagrant ssh
- centos下安裝docker腔长,官網(wǎng)參考
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager -y --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
4, docker machine 搭建