It's so simply to use Docker on the Raspberry Pi. All you have to do is:
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get install docker.io
sudo usermod -aG docker pi
sudo systemctl reboot
To verify that Docker is available:
docker version
docker info
docker run hello-world
Have fun with Docker on your Raspberry Pi.