Setting Up Docker on Ubuntu 20.04 Focal (Arm64) Oracle Cloud
Installing Docker
First add the required dependencies and the security key:
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add the Docker repository corresponding to your CPU architecture and Operating System version (arch=arm64):
sudo add-apt-repository “deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
Finally update the repository sources:
sudo apt-get update
Also guarantee that you are about to install from the official Docker repository, instead of the default Ubuntu repo:
apt-cache policy docker-ce
Then install Docker:
sudo apt-get -y install docker-ce
Check version
sudo docker -v
Add your user to docker group:
sudo usermod -aG docker ${USER}
So that this change takes effect you have log out and log in again.
Installing Docker Compose
First install the Python package manager:
sudo apt install python3-pip
Then install Docker Compose:
sudo pip3 install docker-compose
Check version
sudo docker-compose --version
Source: https://blog.rylander.io/2020/12/23/setting-up-docker-on-ubuntu-20-04-focal-arm64/