dotnet / dotnet/AspNetCore.Docs
Images with Docker over HTTPS: Update port defaults, Incorrect sample commands
- Dominant language
- C#
- Stars
- 13.1k
- Forks
- 24.6k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 109
Description
### Description
docker pull mcr.microsoft.com/dotnet/samples:aspnetapp
docker run --rm -it -p 8000:80 -p 8001:443 -e ASPNETCORE_URLS="https://+;http://+" -e ASPNETCORE_HTTPS_PORTS=8001 -e ASPNETCORE_Kestrel__Certificates__Default__Password="" -e ASPNETCORE_Kestrel__Certificates__Default__Path=c:\https\aspnetapp.pfx -v %USERPROFILE%\.aspnet\https:C:\https\ --user ContainerAdministrator mcr.microsoft.com/dotnet/samples:aspnetapp
the internal https port in this example is 443, so shouldn't it be ASPNETCORE_HTTPS_PORTS=443?
Also the new defaults are port 8080 and 8081, no longer 80 and 443.
### Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/docker-https?view=aspnetcore-8.0
### Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/docker-https.md
### Document ID
2f32c7c3-8667-0e88-495b-c0c888572964
### Article author
@Rick-Anderson
Contributor guide
Assessment
This issue has not been assessed yet.