Hi Brian Goff,
Thank you for your patience while reviewing the query.
I have tried it on my side, and it is working as expected. Could you please make the changes to the hosts file as per the following path on your machine: C:\Windows\System32\drivers\etc
Click on the hosts file to edit it and add the following at the end of the line: # Custom DNS Name <your IP> mydomain.local
For example: 127.0.0.1 mydomain.local
.
After adding it, please check if the DNS is working by running the following command: ping <your DNS name>
, For example, ping mydomain.local
. Image for you reference
Once verified, proceed to build the image and run the container. You should be able to browse with HTTPS. I have tested this locally by building and running the container with SSL, and browsing via HTTPS is working fine. Please see the image below for your reference.
If you're seeing a warning message in the address bar, it's because self-signed certificates aren't trusted by browsers like Chrome or Edge. They lack a recognized Certificate Authority (CA) behind them, meaning users will see security warnings when visiting your website, even though the certificate still encrypts data
Please refer to the image below for your reference and documentation How Exactly Do Self-Signed Certificates Differ from CA-Signed Certificates?
Could you please try and let me know if you encounter any issues? Please feel free to ping me in the comments, and I'll be happy to assist you as needed
If you found this information helpful and my inputs, please click an accepting the answer and "Upvote" on my post for other community members reference