宅客基地

linux一键安装Docker脚本

#CentOS 6
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum update -y
yum -y install docker-io
service docker start
chkconfig docker on

#CentOS 7、Debian、Ubuntu
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker

不用的时候哪里都有,用的时候怎么百度都找不到,好不容易找到,赶紧复制到我博客里,就当做个笔记。

退出移动版