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

  • How can I access from network newly deployed pod in kubernetes?
  • Problems trying to install docker compose on Kubuntu 16.04
  • Does docker storage driver matter for applications that don't write a lot?
  • Amazon Elastic Beanstalk vs EC2 instance with docker containers
  • Docker, pylibmc, memcached
  • replicas of a service in docker swarm remain 0/1 forever
  • 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.

  • writing liberty logs directly to graylog
  • checkCompilerOptions Error while installing package (littler/Docker)
  • How to serve static files with nginx inside of a docker container?
  • Bash script to get into a running container and then run another bash script from that container
  • AWS codebuild not passing down environment variables?
  • Pushing to a private Docker v2 registry gives an error: Manifest invalid
  • 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.