I am new to the fabulous world of docker and star twith asking a quite noobish question I think. But first, a little information about myself:
I am working with exist-db and plan to move it to docker. So set it up on the server, I thought and followed this instructions. I am not importing my app, yet, as I want to familiarize with how it works, before I move towards “the cloud”.
I am running docker on a server, which I access using Putty. I have set it up properly, even my existdb container works:
curl localhost:8080
gives me the html-output I am expecting from existDB. However, when I attempt to [server-IP]:8080 in firefox, I cannot access it.
I know I haven’t configured anything else yet, besides when I started the container, but the following.
docker run -it -d -p 8080:8080 -p 8443:8443 --name exist existdb/existdb:latest
Shouldn't this bind my container[8080] to my host[8080] (or 8443 for that matter), so that I should in theory be able to [Host-ip]:8080 and see the exist Interface?
I do not want to use host-mode, as I'll probably have several apps up& running in the future, so that I think it better to separate the interfaces.