docker core 2.1 custom port

I’m tring to run my core wep app in docker container using official Microsoft core 2.1 image. My application uses port 5000 to expose api. This port is configured in custom section of appSettings.json

Here is docker command that i use

docker container run --rm -p 5000:5000 -v C:BuildMyApp:/build -w /build  --name coreApp dotnet MyApp.dll

Insinde container log I got the following

warn: Microsoft.AspNetCore.Server.Kestrel[0]
      Unable to bind to http://localhost:5000 on the IPv6 loopback interface: 'Cannot assign requested address'.
Hosting environment: Production
Content root path: /build
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.

When I try to go to http://localhost:5000 I get ERR_EMPTY_RESPONSE. Seem like container does not map local port 5000 to 5000 inside the container

Source: StackOverflow