💡 Learn more : Azure for Containers.
📺 Watch the video : How to Get Started with Docker and Azure.
For some reason, I find containers are confusing and my goal with my Azure Tips and Tricks is to try to make things easier. In this mini-series, I'll walk you through Docker and how I use it with Azure. Below is a list of post that you can expect for this week.
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 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
If you would like to see version information then type
Great, so now let's pull an image since it is up and running properly. Head over to store.docker.com 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. 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