$ curl -sSL https://get.docker.com | sh
$ sudo apt install python3-pip
$ sudo pip3 install docker-compose
$ docker login -u [username]
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Then add the key found in ~/.ssh/id_rsa.pub to your GitHub account.
$ sudo apt install git
If you're developing on x86 containers (Intel/AMD), you will get execution errors caused by processor incompatibility. This article may help you fix it: Getting started with Docker on your Raspberry Pi
Multiple Docker images for ARM processors are available on arm32's profile in Docker Hub