'How can I publish to Docker Hub from Visual Studio 2022

I created a default ASP.Net Core MVC application. I enabled docker and set the OS to linux.

Project setup

I ran the project once to verify it worked. I then tried to publish it to a personal repository on docker hub.

The build and publish are successful. I then get the error:

Failed to push docker image
Running the docker.exe tag command failed.

Error parsing reference: "[email protected]/webapplication1:latest" is not a valid repository/tag: invalid reference format

What do I need to do in order to publish my image to docker?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source