What is Working:
Presently I’m using Visual Studio to successfully publish my ASP.NET Core web apps to Docker hub.
What I have tried that is NOT Working: The "dotnet publish" command is not doing the same job — probably because I’m not specifying my docker hub account… After looking at the documentation, I don’t see how I can specify my docker hub account.
What I want: How can I write a script that does what the "publish" button does in visual studio (and publish to docker hub)?
Source: Docker Questions