Code solution for question
How to: install docker raspberry
sudo apt-get update && sudo apt-get upgrade
Another solution: installing docker on a raspberry pi
curl -sSL https://get.docker.com | sh
You can copy the solution for question: install docker raspberry, look at a few solutions of other members of the community or add your own solution, question.