Tomcat server is an open-source middleware server that is more popular than tomcat. The following describes how to use docker to create a tomcat database service. There is no tomcat image marked as OFFICIAL in the OFFICIAL warehouse, but the "tutum" image is doing well. We can directly pull their image to complete our operations.
[Email protected] ~ /Base $ docker pull tutum/tomcat: 8.0 Pulling repository tutum/Usage: Download usage: Download complete9942dd43ff21: Download completed92c3c92fa73: Download usage: download completeb9192a10c580: Download complete28e5e6a80860: Download c Failed: Download failed: Download complete6229ba3a34a8: Download failed: Download complete99cabf3c3503: Download failed: Download completee57060590015: Download complete [email protected] ~ /Base $ docker imagesREPOSITORY tag image id created virtual SIZEbase/163 latest 468d1_c06bc 22 hours ago 249.1 MBtest/supervisord latest 468d1_c06bc 22 hours ago 249.1 MBdl.dockerpool.com: 5000/ubuntu 14.04 1357f421be38 4 days ago 192.7 MBubuntu 14.04 1357f421be38 4 days ago 192.7 runtime: 5000/mysql 5.7 e95cbb9f48ea 6 days ago 258.6 MBmysql 5.7 e95cbb9f48ea 6 days ago 258.6 MBmysql la Test 9a09222edf60 6 days ago 235.6 MBtutum/tomcat 8.0 866eb07a675e 6 weeks ago 539.4 MB [email protected] ~ /Base $ docker run-d-p 80: 8080 tutum/tomcat: 8.05a02ce457c875638bdc5a460206798cc12c3b8633a754a8745e6d1eda136ac99 [email protected] ~ /Base $ docker logs 5a0 => Creating and admin user with a random password in Tomcat => Done! ========================================================== ================================== You can now configure to this Tomcat server using: admin: lfI5jMu2J8ZO ==================================== ==============================================## tomcat can be viewed from logs username and password...
In this way, our tomcat service is started.
Focus on http://www.dockerpool.com for a lot of other content
Docker builds a basic tomcat application