赞
踩
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
systemctl start docker
sudo systemctl status docker
出现如下方: active running表示运行成功
sudo docker info | grep "Docker Root Dir"
- # 停止docker
- systemctl stop docker.socket
- systemctl stop docker
-
- # 移动docker所有文件 /data/docker 是自己打算修改的路径
- mv /var/lib/docker /data/docker
-
- # 建立软连接
- ln -s /data/docker /var/lib/docker
-
- # 重启docker
- systemctl restart docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。