下面是命令,请帮忙看下,执行 run 之后,因为报错了所以容器就退出了,然后我就不能手动在容器中创建目录了。
[root@localhost fastdfsmine]# sudo docker run -d --name fdfs_tracker -v /home/fastdfsmine/tracker:/export/fastdfs/tracker --net=host -e TRACKER_BASE_PATH=/export/fastdfs/tracker xxx:fastdfs sh /usr/local/src/tracker.sh
60aeb899f07bdf59621dafda2477344e520017ab03ee9d3aa20668b89517144f
[root@localhost fastdfsmine]# docker logs fdfs_tracker
mkdir "/export/fastdfs/tracker/logs" fail, errno: 13, error info: Permission denied[2018-10-12 08:06:11] INFO - local_host_ip_count: 3, 127.0.0.1 192.168.1.128 172.17.0.1
[2018-10-12 08:06:11] CRIT - exit abnormally!
tail: cannot open `/export/fastdfs/tracker/logs/trackerd.log' for reading: No such file or directory
tail: no files remaining