Access web server over https in a Docker container

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:
enter image description here

  • Changing tomcat port in Dockerfile
  • Cannot download Docker image from repository
  • Docker container and virtual python environment
  • Docker registry on EC2
  • Installing Python 3 Docker Ubuntu error command 'x86_64-linux-gnu-gcc
  • Boot2Docker/Fig mounted volume not refreshing
  • And then access the server using the ports 1000 or 1001, but it fails too.

    Am I missing something?

    BTW, I’m using default NAT connection.

  • Docker Registry 2.0 with Amazon S3 and TLS setup
  • Create docker image from Artifactory
  • Is there a way to simulate docker to have physical interfaces?
  • Selenium Test Execution in Docker with UI
  • docker-compose INTERNAL ERROR: cannot create temporary directory
  • docker commit fails with “no such id”
  • One Solution collect form web for “Access web server over https in a Docker container”

    https uses port 443 (not 9443) by default.

    Make both “Host Port” and “Guest Port” 443 and try again.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.