Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images with Docker over HTTPS: Update port defaults, Incorrect sample commands #34061

Open
bzuidgeest opened this issue Nov 7, 2024 · 0 comments
Assignees
Labels
doc-out-of-date Doc is out of date with the current version Pri1

Comments

@bzuidgeest
Copy link

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="<CREDENTIAL_PLACEHOLDER>" -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

@wadepickett wadepickett self-assigned this Nov 7, 2024
@wadepickett wadepickett added the doc-out-of-date Doc is out of date with the current version label Nov 7, 2024
@wadepickett wadepickett changed the title Incorrect sample commands Images with Docker over HTTPS: Update port defaults, Incorrect sample commands Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-out-of-date Doc is out of date with the current version Pri1
Projects
None yet
Development

No branches or pull requests

2 participants