linuxdockerlinuxCentos7安装dockerAlex2018-06-062023-10-28centos7安装docker添加docker yum源12345678cat >>/etc/yum.repos.d/docker.repo<<EOF[docker-ce-edge]name=Docker CE Edge - \$basearchbaseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/\$basearch/edgeenabled=1gpgcheck=1gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpgEOF yum install12345678910yum -y install docker-ce### 查看docker版本docker --version### 启动dockersystemctl enable dockersystemctl start docker