How can I install a specific version of the docker engine

I worked it out - if you want to install a specific version of docker, you can use the following:

wget -qO- https://get.docker.com/ | sed 's/lxc-docker/lxc-docker-1.6.2/' | sh

Replace 1.6.2 with the version you want.