Now in our final post we’ll use our uploaded hello-azure-world image to deploy an Azure container instance.
First inside our registry we must grant admin role to the registry.
Next, Search for Azure container instance in the martket place and select create and use your uploaded image.
Move into the container and inside logs you’ll find that the container have launched and is displaying the hello-word container as it should.
Done and done! Good job!
Let’s push our hello world to Azure Registry. You can check it out here.
First we must install the Azure CLI on our linux vm. Run the installer script.
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Next sign in to Azure on your Linux vm.
Next sign in to the azure container registry, Don’t include the ‘azurecr.io’ domain suffix.
az acr login --name
Next tag the hello world image with your container registry name. The login server name is in the format <registry-name>.azurecr.io (all lowercase), for example, mycontainerregistry.azurecr.io.
docker tag hello-world /hello-azure-world:v1
Perfect! Now with the tag let’s push to our registry!
docker push /hello-azure-world:v1
Let’s quickly jump over to the Azure portal and check our uploaded image.
You can also check from az cli with
az acr repository list -n registryname
And finally you can now download your own hello world container from your very own Azure Container Registry!
docker run /hello-azure-world:v1
There you go! You just uploaded your very own Docker image to an Azure Container Registry and deployed it.
Now in the last post we will create an Docker instance from our hello world
Before we can upload our docker image we need to create an Azure Registry. So let’s do that!
Jump in to the Azure portal and search for Docker Registry in the portal and select create.
Now in the next post we’ll push our image into our very own public Azure container registry!
Head over to Dockers site for the installation guide of Docker here.
Now let’s install docker.
sudo apt-get update
sudo apt-get install \
Add the GPG key to trust software by Docker.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Since we are running ARM you’ll select the ARM architecture
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
Now it’s time to run and install Docker on Raspberry Pi.
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Finally configure docker to be able to run without sudo.
sudo groupadd docker
sudo usermod -aG docker $USER
Now log out and in again and test your Docker installation!
$ docker run hello-world
In the next post we will create an Azure Container Registry to host our new Docker image.
First let’s create the VM. You can read more about it in Azure docs here.
First create a resource group to hold your VM and other resources.
az group create --name TutorialResources --location eastus
Next let’s create the Ubuntu VM.
az vm create --resource-group TutorialResources \
--name TutorialVM1 \
--image UbuntuLTS \
--output json \
Once done try and connect using ssh and the public IP adress that displayed as part of the verbose output.
There we go! Now in the next post we’ll install docker.
Before installing the CLI tools in VSCode make sure that you have installed the Azure CLI on your client here.
Now download and install the Azure CLI Tools so we get the Intellisense in VSCode. Search and install and restart VSCode.
Next create a file with the .azcli type so that the extension will recognize the file.
Now in the next part we will deploy the Linux VM in Azure using AZ Cli.