Check for the prerequisites mentioned in the previous recipe.
Uninstall any older versions of Docker. Previous versions of the Docker package are called docker, docker.io, or docker-engine. If these are installed, then we need to uninstall them, or else they might cause problems:
$ sudo apt-get remove docker docker-engine docker.io