community edition 绀惧尯鐗
enterprise edition 浼佷笟鐗
瀹夎瀹 鎻愪緵浜哾ocker engine, docker cli client ,docker compose ,docker machine, kitematic(鍥惧舰鍖栫晫闈)
vagrant init centos/7
vagrant up
vagrant ssh
vagrant states
vagrant halt 鍋
vagrant destroy 鍒犻櫎杩欏彴鏈哄櫒
vagrantfile
淇敼vagrantfile 鑷姩瀹夎docker
config.vm.procision "shell", inline: <<-SHELL
sudo yum remove docker docker-common docker-selinux docker-engine
sudo yum install -y yum-utils decive-mapper-persistent-data lvm2
sudo yum-config-manager -y --add-repo https://download.docker.com/liunx/centos/docker-ce.repo
sudo yum install -y docker-ce
sudo sysyemctl start docker
SHELL
docker machine
docker-machine create demo
docker-machine ls
docker-machine ssh demo
docker-machine stop
docker-machine remove
docker-machine env demo
eval$(docker-machine env demo)
– aws鐨別cs (amazon elastic container service)
– aliyun 鐨刢ontainer service
璁块棶鎺у埗 accesskey
docker-machine create -d aliyunecs –aliyunecs-io-optimized=optimized –aliyunecs-instance-type=ecs.c5.large –aliyunecs-access-key-id= –aliyunecs-access-key-secret= –aliyunces-region=cn-qingdao immoc
鍙互鐪媎ocker machine-provision aws ec2 instances
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
鏇存崲婧
## 闃块噷浜
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
## 缃戞槗
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
yum clean all
yum makecache
## 娓呯悊yum缂撳瓨
yum clean all
## 娓呯悊瀹屽悗閲嶆柊寤虹珛缂撳瓨
yum makecache
## 鏇存柊yum
yum -y update
## 鏌ョ湅婧愭槸鍚︾敓鏁
yum repolist
https://labs.play-with-docker.com
涓涓叡浜殑docker
鍙戣〃鍥炲