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

  • Ignore directories with .dockerignore or volume?
  • Chronos in Docker - jobs stuck as 'queued'
  • how to assign public IP while run the docker container in linux
  • Overriding default umask for docker daemon
  • Docker Container from php:5.6-apache as root
  • How to refresh a container links
  • 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.

  • How to save application state in Marathon?
  • Bitbucket pipelines: No toolchains found in the NDK toolchains folder for ABI with prefix: aarch64-linux-android
  • Find the docker containers using an image?
  • sonar-scanner-2.9.0.670 throws java.lang.ExceptionInInitializerError inside docker container
  • Using command output as environment variable value?
  • Docker and file upload server
  • 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.