1:安装yum-manager管理工具:yum -y install yum-utils
2:添加docker-repo源:sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3:安装docker:yum install docker-ce
4:开启docker服务:systemctl start docker
5:拉取fastdfs镜像:sudo docker image pull delron/fastdfs
6:开启fsdfs的tracker服务:docker run -dti --network=host --name tracker -v /var/fdfs/tracker:/var/fdfs delron/fastdfs tracker
123.57.61.168是自己阿里云
7:开启storage服务,记得改IP:docker run -dti --network=host --name storage -e TRACKER_SERVER=123.57.61.168:22122 -v /var/fdfs/storage:/var/fdfs delron/fastdfs storage