title: https spring app running on docker
body: <p>My issue in the last couple of days is that I'm trying to encrypt some of my projects that I'm working on. 
  Since Docker is a great solution for me (if it runs locally it will run remotely) to my understanding I got 3 layers that I can implement my ssl certificate. 
  First layer is the instance or the VM in my case its locally, aws or google. second layer is the Docker daemon ( that acts as a server or the manager of all containers running )and the last layer is the spring boot app or services that run on jdk-alpine environment (probably tomcat server ..). </p>
  
  <p>To encrypt the app and run it through my inteliJ everything goes well and I get a secured app connection. once I build my docker file containing my jar app and running it with this line : </p>
  
  <blockquote>
    <p>docker run -p 443:8443 myImage</p>
  </blockquote>
  
  <p>I get the error message:</p>
  
  <blockquote>
    <p>The Tomcat connector configured to listen on port 8443 failed to start. The port may already be in use or the connector may be misconfigured. </p>
  </blockquote>
  
  <p>no matter what port I define in the spring boot application.properties </p>
  
  <pre><code>#HTTPS
  server.port: 8443
  server.ssl.key-store: https-key.jks
  server.ssl.key-store-password: password
  server.ssl.keyStoreType: JKS
  server.ssl.keyAlias: https-key
  </code></pre>
  
  <p>I get the same message that the port is been used means there is something that I'm missing. </p>
  
  <p>Any help/guides to implement an https:// connection to a spring boot app that runs on Docker will be a great boos to my work and I'll appreciate a lot! </p>