Using Docker in interactive mode using an offical Microsoft .Net Core SDK image

I’m trying to enter interactive mode using an official Microsoft .Net Core image and use typical .Net commands such as ‘dotnet build’, but all I get is an ‘>’ cursor. What am I doing wrong?

I’m using the following command:

docker run -it -v $(pwd):/app' -w '/app' -p 8000:80 mcr.microsoft.com/dotnet/core/sdk /bin/bash

I was hoping to get a root command prompt, but all I’m getting is ‘>’

Source: StackOverflow