Join Nate Barbettini for an in-depth discussion in this video Test the Docker image locally, part of Deploying ASP.NET Core Applications.
- View Offline
- [Narrator] Now that we've built an image…with Docker build, we can test it on our local machine.…First, use Docker images to list…the images that are available.…"HelloCoreWorld" is the name of the image I created before.…I can run this image using docker run.…I'll use the "-it" flag to tell Docker to take…all of the output from the container…and pipe it to this console window.…I'll also use the "-p" flag to map port 5000…from inside of the container, which was exposed with the…expose command in the Docker file,…to port 5000 on this machine, on my local machine.…
And finally I'll specify the name…of the image that I want to spin up.…When I hit enter, Docker will take this image,…create a container from it, and then run the container…and show me the output.…And it works really fast.…So, in just that amount of time,…I have the container spun up, Kestrel started up,…and it's listening for requests.…If I switch over to a browser, and browse to localhost5000,…I should start interacting with that container…and getting a response back.…
- Setting up your ASP.NET project
- Setting up IIS
- Creating an IIS site and app pool
- Publishing your app with Visual Studio or the command line
- Deploying to Azure
- Deploying to Linux
- Deploying with Docker
Skill Level Intermediate
1. Get Started
2. Deploying to IIS
3. Deploying to Azure
Get started with Azure1m 4s
4. Deploying to Linux
5. Deploying with Docker
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.