- Lab
- A Cloud Guru
Build and Run a Container Using Azure ACR Tasks
Your manager asks you to run a container, but you don't have Docker installed on your desktop. You've recently learned about Azure ACR Tasks built into Cloud Shell and decide to give it a try. Your goal is to create a new container registry and use ACR Tasks to build, push, and run the container in Azure.
Path Info
Table of Contents
-
Challenge
Start Cloud Shell
- Click the Cloud Shell icon (
>_
) in the upper right. - Select Bash.
- Select Mount storage account.
- Choose the lab provided Storage account subscription.
- Click Apply.
- Choose Select existing storage account.
- Click Next.
- Choose the lab provided Subscription, Resource Group, and Storage account name.
- Click Create a file share.
- Provide the name fileshare and click Ok.
- Click Select.
- Click the Cloud Shell icon (
-
Challenge
Create a New Container Registry
- In the Azure portal, click the listed resource group name.
- Copy it to your clipboard.
- Create a new container registry, replacing
<RESOURCE_GROUP_NAME>
with the name you just copied. - Change the directory to
clouddrive
. - Create a Dockerfile.
-
Challenge
Build an Image and Push to ACR
Build and push the image to Azure Container Registry using the newly created Dockerfile.
-
Challenge
Run the New Container
Run the container.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.