linux一键安装Docker脚本

发布于 2019-08-19  6.05k 次阅读


#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

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


Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/www.zhaiike.com/wp-content/plugins/wechat-social-login/templates/share/share-bar.php on line 7

郑州90后一名计算机爱好者,希望能通过网络结交更多朋友!