From the course: Deploying ASP.NET Core Applications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Publish an image to Docker Hub
From the course: Deploying ASP.NET Core Applications
Publish an image to Docker Hub
- [Instructor] Docker Hub is an online repository for sharing Docker images. You can push images that you've built up to Docker Hub, and then pull them down at a later time, or on a different machine. Storing public images on Docker Hub is free, so it's a useful way to share and maintain images that you use. To use Docker Hub, sign up for an account at hub.docker.com, then in the terminal, run Docker login and enter your credentials. I've already logged in on this machine. Images you push to Docker Hub must follow a naming scheme, where the name of your Docker Hub repository comes first, followed by a slash, and then the name of the image. Your personal repository name is your username, so I need to rebuild my image to include my username. I'll rebuild my project image by running Docker build -t, and for the name, I'll use my username, nbarbettini/ and then the image name, hellocoreworld, and a period to build it from the current directory. Once the image is built, I can push it up to…
Contents
-
-
-
-
-
-
-
-
(Locked)
Docker overview2m 7s
-
(Locked)
Create a Docker image3m 31s
-
(Locked)
Test the Docker image locally1m 14s
-
(Locked)
Run and monitor a container1m 22s
-
(Locked)
Docker Compose overview50s
-
(Locked)
Kestrel and NGINX with Compose4m 6s
-
(Locked)
Save an image to a file1m 2s
-
(Locked)
Publish an image to Docker Hub1m 37s
-
(Locked)
-