docker官网搜索镜像地址:https://hub.docker.com/search?q=fastdfs&type=image
docker pull delron/fastdfs
docker run -d --network=host --name tracker -v /fdfs/tracker:/var/fdfs delron/fastdfs tracker
docker run -d --network=host --name storage -e TRACKER_SERVER=192.168.206.132:22122 -v /fdfs/storage:/var/fdfs -e GROUP_NAME=group1 delron/fastdfs storage
192.168.206.132要改成你本机的IP
-
查看容器运行情况
docker ps
-
其他
进入storage容器内部
docker exec -it storage /bin/bash
查看storage.conf
cat /etc/fdfs/storage.conf
查看nginx.conf
cat /usr/local/nginx/conf/nginx.conf