initial situation
In Ubuntu (14.04 / 14.10) a, the following commands were executed:
apt-get update && apt-get install tomcat7 service tomcat7 start
For one thing, I tried this in the VirtualBox and tomcat7 virtual machine, as expected:
vagrant init hashicorp/precise32 vagrant up
On the other hand, I tried this in a Docker container, as shown here:
sudo docker run -it --name tomcattest ubuntu bash
Problem
There, the tomcat7 command command issues the [fail] command. However, tomcat works, but / var / log / tomcat 7 / catalina.out says the following:
Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false] Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false] Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false] Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false] Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false] Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.ClassLoaderFactory validateFile WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false] Apr 16, 2015 5:52:40 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Apr 16, 2015 5:52:40 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 514 ms Apr 16, 2015 5:52:41 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Apr 16, 2015 5:52:41 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu) Apr 16, 2015 5:52:41 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT Apr 16, 2015 5:52:42 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Apr 16, 2015 5:52:42 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1150 ms
explanation found
Can someone distinguish another behavior and tell me if tomcat7 can be installed in a simple way via apt-get inside the docker container without warning?