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

 

posted on 2023-04-09 09:06  春分夏至  阅读(757)  评论(0编辑  收藏  举报

导航