How To Install Docker on Odroid-C2 (or ARM64)



  Environment
    Device : Odroid-C2
    OS : Ubuntu-20.04




1. Install Docker Engine


1) Uninstall old versions
$ sudo apt remove docker docker-engine docker.io containerd runc
2) Insert Docker Repository
$ sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-key fingerprint 0EBFCD88
$ sudo apt update
3) Install Docker Engine
$ sudo apt install docker-ce docker-ce-cli containerd.io -y
$ sudo usermod -aG docker $USER
4) Verify Docker Engine
$ sudo docker run hello-world

2. Install Docker Compose


$ sudo apt install python3-pip libffi-dev -y
$ sudo pip3 install docker-compose