TIP
💡 Learn more : Azure for Containers (opens new window).
📺 Watch the video : How to Get Started with Docker and Azure (opens new window).
# Getting Started with Docker and Azure
# Containers for the rest of us
For some reason, I find containers are confusing and my goal with my Azure Tips and Tricks (opens new window) is to try to make things easier. In this mini-series, I'll walk you through Docker (opens new window) and how I use it with Azure. Below is a list of post that you can expect for this week.
- Azure Tips and Tricks Part 45 - Getting Started with Docker and Azure
- Today - Azure Tips and Tricks Part 46 - Run an app inside a Container Image with Docker
- Azure Tips and Tricks Part 47 - Creating a Container Image with Docker
- Azure Tips and Tricks Part 48 - Pushing a Container Image to a Docker Repo
# Getting Started with Docker and Azure
What is Docker? Docker is an open-source project that automates the deployment of applications inside software containers. It automates the repetitive tasks of setting up and configuring development environments so that developers can develop.
Head over to Docker (opens new window) and you'll want to download the Community Edition. Keep in mind that there are two channels. Which are the Stable and Edge version. As you can imagine, the stable build is... well... stable and the edge build is for those that want the latest bits (which may not be tested). Choose your poison. For this series, we'll use the Stable version.
Once it has been downloaded and installed, you should see a green light that indicates that docker is running.
You can easily verify it was installed properly by opening terminal or a command prompt and typing docker info
.
If you would like to see version information then type docker version
.
Great, so now let's pull an image since it is up and running properly. Head over to store.docker.com (opens new window) and search for aspnetcore-build.
Why this image? We want to run an ASP.NET Core without installing the tools, platform and SDK on my local machine.
If you search for aspnetcore-build
then you'll land on this page (opens new window). Pay close attention to the following command (highlighted below) that we'll use to copy into our terminal/command prompt to pull down the image.
Note the structure of the command - docker pull microsoft/aspnetcore-build
. If you're familiar with git, then this syntax feels right at home. You can also type docker help
for a full list of commands.
You'll see Docker pulled the image from Docker Store, and when it completes, you can type docker images
to list all the images available to use.
Michaels-MacBook-Pro:~ mbcrump$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
microsoft/aspnetcore-build latest c0c285a7a306 37 hours ago 1.85GB
2
3