Docker运行tracker,The path /var/fdfs/tracker is not shared from OS X and is not known to Docker
Docker装FastDFS,运行tracker,错误:The path /var/fdfs/tracker is not shared from OS X and is not known to Docker执行如下命令开启tracker 服务docker run -dti --network=host --name tracker -v /var/fdfs/tracker:/var/fdf..
·
Docker装FastDFS,运行tracker,错误:The path /var/fdfs/tracker is not shared from OS X and is not known to Docker
执行如下命令开启tracker 服务
docker run -dti --network=host --name tracker -v /var/fdfs/tracker:/var/fdfs delron/fastdfs tracker
会发现执行可能会报错:
目前有可能是一个 Docker 的 Bug,因为 /var/fdfs/tracker 是挂载到已经默认添加 /private 文件共享,但是它还是报错,如果你在 Docker 设置的 File Sharing 添加的话它也不会让你添加,因此我们需要做一点小修改:
docker run -dti --network=host --name tracker -v ${HOME}/docker/fdfs/tracker:/var/fdfs delron/fastdfs tracker
效果
同样,执行如下命令开启storage 服务
docker run -dti --network=host --name storage -e TRACKER_SERVER=192.168.22.60:22122 -v ${HOME}/storage:/var/fdfs delron/fastdfs storage
搞定~
更多推荐
已为社区贡献1条内容
所有评论(0)