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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s