I am new here and also new to the docker and tomcat. I am trying to deploy a maven project with docker. I have managed to create an image for tomcat in docker and created a container from that image. https://0.0.0.0:49153// or https://172.17.42.1:49153/ gives me the apache tomcat opening page; but whenever i try to enter to the web manager; i can not login with my own username and password for my local tomcat.
I guess i need to add the tomcat-users.xml configurations to my docker image but i don't know how to set a user for that. Here is my dockerfile
FROM tomcat:7-jre7
MAINTAINER "rozerinaktas <rozerinaktas@gmail.com>"
// there should be an add command here i think
CMD sudo service tomcat7 start && tail -f /var/log/tomcat7/catalina.out
Any help would be very appreciated.