1. 程式人生 > >rm: can't remove '/usr/local/tomcat/webapps/ROOT': Directory not empty

rm: can't remove '/usr/local/tomcat/webapps/ROOT': Directory not empty

建立docker映象時,執行刪除命令報錯:

rm: can't remove '/usr/local/tomcat/webapps/ROOT': Directory not empty

執行 docker info看下如果有這個警告:

 

WARNING: overlay: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior.
         Reformat the filesystem with ftype=1 to enable d_type support.
         Running without d_type support will not be supported in future releases.

WARNING: bridge-nf-call-ip6tables is disabled

 

磁碟的驅動問題,需要配置下:

vi /etc/systemd/system/multi-user.target.wants/docker.service


修改ExecStart的值為:

ExecStart=/usr/bin/dockerd --storage-driver=devicemapper

#執行
systemctl daemon-reload 

systemctl restart docker

 

這個問題應該是在centos7.2的版本上會有,所以我們建議用CentOS7.4