FROM tomcat:latest
RUN ["rm", "-fr", "/usr/local/tomcat/webapps/webapp.war"]
ADD ./webapp/target/webapp.war /usr/local/tomcat/webapps/
CMD [“catalina.sh”, “run”]
构建并推送到dockerhub此img后,尝试运行:
docker run -d -p 9090:8080 abubandit/demo-app:1.0
docker ps -a
docker ps-a
[root@centos ~]# docker logs e9349021d7e5
/bin/sh: 1: [“catalina.sh”,: not found
怎么了?
暂无答案!
目前还没有任何答案,快来回答吧!