Docker安装fastdfs(Docker installation fastdfs)

拉取官方镜像

sudo docker image pull delron/fastdfs

开启tracker容器

sudo docker run -dit --name tracker --network=host -v /var/fdfs/tracker:/var/fdfs delron/fastdfs tracker

开启storage容器

sudo docker run -dti --name storage --network=host -e TRACKER_SERVER=192.168.XXX.XXX:22122 -v /var/fdfs/storage:/var/fdfs delron/fastdfs storage
————————

Pull the official image

sudo docker image pull delron/fastdfs

Open the tracker container

sudo docker run -dit --name tracker --network=host -v /var/fdfs/tracker:/var/fdfs delron/fastdfs tracker

Open storage container

sudo docker run -dti --name storage --network=host -e TRACKER_SERVER=192.168.XXX.XXX:22122 -v /var/fdfs/storage:/var/fdfs delron/fastdfs storage