.NET Tutorial - Deploy a microservice to Azure

Push to Docker Hub

Docker Hub is a central place to upload Docker images. Many products, including Microsoft Azure, can create containers based on images in Docker Hub.

Sign in to Docker Hub

In your command prompt, run the following command:

In your terminal, run the following command:

Terminal
docker login

Use the username and password created when you downloaded Docker in the previous tutorial. You can visit the Docker Hub website to reset your password if needed.

Upload image to Docker Hub

Re-tag (rename) your Docker image under your username and push it to Docker Hub using the following commands:

Terminal
docker tag mymicroservice [YOUR DOCKER USERNAME]/mymicroservice
docker push [YOUR DOCKER USERNAME]/mymicroservice

The push command will upload your image to Docker Hub, which may take some time.

Continue