windows下安装docker

1, docker for windows 安装

下载安装

2, docker machine安装
3, virtualbox + vagrant 快速搭建

  • 安装centos7
mkdir centos
cd centos
#创建Vagrantfile,可以到https://app.vagrantup.com/boxes/search
vagrant init centos/7
vagrant up
vagrant ssh
  • centos下安装docker,官网参考
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 搭建

你可能感兴趣的:(windows下安装docker)