Centos7搭建Docker部署LNMP
1、首先呢先更新yum源 yum update 2.1、安装docker存储库 yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 这一步是什么意思呢 官方这么解释 Before you install Docker CE for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.(首次在新主机上安装Docker CE之前,需要设置Docker存储库。之后,您可以从存储库安装和更新Docker) 2.2、设置稳定的存储库 yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from