Docker安装及配置家目录 Docker安装及配置家目录安装依赖1yum install -y yum-utils device-mapper-persistent-data lvm2 安装下载源1yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 安装docker1yum -y install docker-ce 创建目录1mkdir /home/dockerfile 修改默认目录1vim /usr/lib/systemd/system/docker.service 1ExecStart=/usr/bin/dockerd --data-root /home/dockerfile -H fd:// -H tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock 启动docker123systemctl daemon-reload systemctl start docker.servicesystemctl enable docker.service 若无法启动则修改 –data-root 为–graph1ExecStart=/usr/bin/dockerd --graph /home/dockerfile -H fd:// -H tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock 再起重启docker123systemctl daemon-reload systemctl start docker.servicesystemctl enable docker.service Docker #Docker Nginx部署 上一篇 Docker部署redis单节点 下一篇