Windows 10 cannot connect tomcat running within docker container

You cannot connect or you cannot access the webapp? What does the browser return? HTTP 404 or connection refused or something else?

Also I am wondering, is it the first you have to install a tomcat app or it is just the first you try in a container?

I totally agree with @meyay regarding the ADD instruction, however, I tried a war file and it wasn’t extracted, but I would still prefer to use the COPY instruction because it is much clearer what it does.

If you want to install a tomcat webapp, you need to configure tomcat to find it and map the URL and the applications. If you have one app that you want to access without a subpath in the URL and without tomcat configuration, you need to call it ROOT.war. Related topic: