为什么要用Docker
将一整套环境打包封装成镜像,无需重复配置环境,解决环境带来的种种问题。
Docker容器间是进程隔离的,谁也不会影响谁。
安装步骤
centos安装docker,
先更新一下yum:
yum update
用默认配置安装docker
yum install -y docker
启动docker
systemctl start docker
阿里云镜像加速:
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
复制加速器地址,按照页面下方教程配置即可。
本文来自凡蜕博客(https://blog.ysboke.cn), 转载请带上地址.。