vim docker_install.sh

yum update
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
systemctl start docker
docker --version
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
1
2
3
4
5
6
7
8
9
chmod 777 ./docker_install.sh
1

生成ssh key

ssh-keygen -t rsa -C "wutongci@hotmail.com" -b 4096
1

TOC