1 min read

Install Docker on a Azure Linux VM, upload a docker image to Azure Container Registry and Deploy a Azure Container Instance Part 3 – Install Docker

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 \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common

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) \
   stable"

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.

Leave a Reply