linux一键安装Docker脚本

发布于 2019-08-19  8299 次阅读


#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

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

郑州90后一名计算机爱好者,希望能通过网络结交更多朋友!
最后更新于 2019-08-20