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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Start Cloud Shell
- Click the Cloud Shell icon (
>_
) in the upper right.- Select Bash.
- Click Show advanced settings.
- Change Cloud Shell Region to the same region as the existing resource group.
- For Storage account, select Use existing.
- For File share, select Create new and give it a name of "fileshare".
- Click Create storage.
- Click the Cloud Shell icon (
- 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.
- Build an Image and Push to ACR
Build and push the image to Azure Container Registry using the newly created Dockerfile.
- Run the New Container
Run the container.