docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 287 forks source link

Secure Web applications launched from Docker Desktop open using HTTP instead of HTTPS #13200

Open michaelerice-github opened 1 year ago

michaelerice-github commented 1 year ago

When setting ports to 443 (SSL), the link created in the UI is unexpected.

Actual behavior

The link created launches the browser using 'http'

Expected behavior

The link created launches the browser using 'https'

Information

Output of & "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check

Steps to reproduce the behavior

  1. Create a secure web application (I am working with Angular, but I don't think the type of web app makes a difference)...
  2. Create a docker-compose file for the app and specify ports to '443:443'...
  3. Build the image and create a container using docker compose commands...
  4. View the container in the desktop app and move mouse over the link in the 'port(s)' column - see screenshot...
  5. Click on the link and the browser opens using 'http'...

docker_desktop_https_link

docker-robott commented 1 year ago

There hasn't been any activity on this issue for a long time. If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment. If not, this issue will be closed in 30 days.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

lojoh commented 1 year ago

/remove-lifecycle stale

I have the same issue.

henkdegroot commented 1 year ago

Please make this available in Docker Desktop. Ideally I would like to be able to specify for each port if it should be http or https.

SeanFeldman commented 12 months ago

I was expecting a mapping to 443 to be auto-identified as secure and open an https link. Or, provide an option to open an https link rather than always use http.

globdug commented 2 months ago

I have same problem, any news?