Docker Community Forums

Share and learn in the Docker community.

Access web server over https in a Docker container


(Corozcoc) #1

I’m using Boot2Docker to manage Docker containers in Windows and I have a container running an IBM Liberty server (I guess is the same for any other server), I can access the server home screen in the host machine using only the ip (which I get using the command boot2docker ip), but if I try to access the server using the https port, like this xx.xx.xx.xx:9443 the connection fails.

I tried forwarding the port in VirtualBox like this:

Name…Protocol…Host IP…Host Port…Guest IP…Guest Port
Rule1…UDP…---------…1000…----------…9443
Rule1…TCP…---------…1001…----------…9443

And then access the server using the ports 1000 or 1001, but it fails too.

Am I missing something?

Thanks!