Docker启动Tomcat失败提示Cannot find /usr/local/tomcat/bin/setclasspath.sh
docker启动tomcat失败,提示如下:
[root@host66 ~]# docker run -it -p 8000:8080 tomcat
Cannot find /usr/local/tomcat/bin/setclasspath.sh
This file is needed to run this program
# 解决办法
启动命令中添加--privileged参数即可
docker run --privileged -it -p 8000:8080 tomcat
参考文章:
https://www.jiangzi.cc/kaifa/1_501750.html
https://blog.csdn.net/gsls200808/article/details/126460203