Replies: 1 comment 5 replies
-
Here's my experience: % docker build --pull -t aspnetapp .
% docker run -d --name myapp --rm -p 8000:80 aspnetapp
% curl localhost:8000/Environment
{"runtimeVersion":".NET 6.0.6","osVersion":"Linux 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022","osArchitecture":"Arm64","processorCount":4,"totalAvailableMemoryBytes":4108656640,"memoryLimit":0,"memoryUsage":0} I always thought of |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have built the image with the dotnet-docker/samples/aspnetapp/Dockerfile
and got my image and also ran it with
docker run --name myapp --rm -itd -p 8000:80 myapp
and then I have an issue that connections from outside of docker host VM seem to be blocked by a firewall or something.
curl from the docker host (which is a hyperV VM with ubuntu 22.04 OS) itself is fine but curl from my Notebook is blocked:
I have never seen this issue with other containers, usually once a container is up and port mapped I can access it with browser from my Notebook without any problems whatsoever. So I assume it is something special about this image mcr.microsoft.com/dotnet/aspnet:6.0
Beta Was this translation helpful? Give feedback.
All reactions