{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/tomcat/issues/15","repository_url":"https://api.github.com/repos/docker-library/tomcat","labels_url":"https://api.github.com/repos/docker-library/tomcat/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/tomcat/issues/15/comments","events_url":"https://api.github.com/repos/docker-library/tomcat/issues/15/events","html_url":"https://github.com/docker-library/tomcat/issues/15","id":99829985,"number":15,"title":"Cannot use manager app","user":{"login":"jar349","id":290154,"avatar_url":"https://avatars.githubusercontent.com/u/290154?v=3","gravatar_id":"","url":"https://api.github.com/users/jar349","html_url":"https://github.com/jar349","followers_url":"https://api.github.com/users/jar349/followers","following_url":"https://api.github.com/users/jar349/following{/other_user}","gists_url":"https://api.github.com/users/jar349/gists{/gist_id}","starred_url":"https://api.github.com/users/jar349/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jar349/subscriptions","organizations_url":"https://api.github.com/users/jar349/orgs","repos_url":"https://api.github.com/users/jar349/repos","events_url":"https://api.github.com/users/jar349/events{/privacy}","received_events_url":"https://api.github.com/users/jar349/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-08T19:39:54Z","updated_at":"2016-05-04T06:31:53Z","closed_at":"2016-05-03T20:09:03Z","body":"Your documentation mentions that you don't have any users defined in `$CATALINA_HOME/conf/tomcat-users.xml`.  That's fine for obvious security reasons.\r\n\r\nI'm using vagrant to provision a centos box with docker and I want to run your tomcat image in a docker container and be able to access the manager app.  How do you recommend that I edit the container's `$CATALINA_HOME/conf/tomcat-users.xml` file to define a user -- in an automated way?\r\n\r\nI very stupidly tried to use `docker run --name=tomcat-container -d -p 8080:8080 -v /vagrant/.tomcat:/usr/local/tomcat tomcat:8-jre8` which blew away the entire /usr/local/tomcat directory (this is correct docker behavior - I'm just dumb).\r\n\r\nWhat I was able to finally do was change the volume mapping like so: `docker run -d -p 8080:8080 -v /vagrant/.tomcat:/var/tomcat-config tomcat:8-jre8` and then write a `tomcat-users.xml` file out to `/vagrant/.tomcat` and then `docker exec tomcat-container cp /var/tomcat-config/tomcat-users.xml /usr/local/tomcat/conf` followed by `docker stop tomcat-container` and `docker start tomcat-container`.  But this is quite an ugly hack, wouldn't you agree?\r\n\r\nIs there a better way to accomplish this?"},"comment":{"url":"https://api.github.com/repos/docker-library/tomcat/issues/comments/216757997","html_url":"https://github.com/docker-library/tomcat/issues/15#issuecomment-216757997","issue_url":"https://api.github.com/repos/docker-library/tomcat/issues/15","id":216757997,"user":{"login":"larsvanmourik","id":6169926,"avatar_url":"https://avatars.githubusercontent.com/u/6169926?v=3","gravatar_id":"","url":"https://api.github.com/users/larsvanmourik","html_url":"https://github.com/larsvanmourik","followers_url":"https://api.github.com/users/larsvanmourik/followers","following_url":"https://api.github.com/users/larsvanmourik/following{/other_user}","gists_url":"https://api.github.com/users/larsvanmourik/gists{/gist_id}","starred_url":"https://api.github.com/users/larsvanmourik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsvanmourik/subscriptions","organizations_url":"https://api.github.com/users/larsvanmourik/orgs","repos_url":"https://api.github.com/users/larsvanmourik/repos","events_url":"https://api.github.com/users/larsvanmourik/events{/privacy}","received_events_url":"https://api.github.com/users/larsvanmourik/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T06:31:53Z","updated_at":"2016-05-04T06:31:53Z","body":"The problem is that Tomcat doesn't list any change in functionality on that part that I can find and before I report a bug about it I would like to have some confirmation from other users that it is indeed a bug and not some oversight on my side. It's a pretty simple test to do so I thought I'd ask here, where people are (were) already looking into a similar issue."}}