- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab 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.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.