Install latest Docker version on Debian 7 Wheezy

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.

With docker, you can setup and run a fully isolated environment with just one command, and this environment will be able to run on any platform where Docker runs.
It's trully amazing how fast you can now deploy environments.

The installation is pretty easy on Ubuntu but can be a little bit tricky on Debian 7.
Here is the quickest way to install the latest docker version on Debian 7 Wheezy:

wget http://get.docker.io/builds/Linux/x86_64/docker-latest -O /usr/bin/docker
curl -o /etc/init.d/docker https://raw.githubusercontent.com/dotcloud/docker/master/contrib/init/sysvinit-debian/docker
chmod +x /usr/bin/docker /etc/init.d/docker
addgroup docker
update-rc.d -f docker defaults
cat << EOF > /etc/default/docker
DOCKER_OPTS="-H 127.0.0.1:4243 -H unix:///var/run/docker.sock"
EOF
service docker restart (or : service docker start)

Now run:

docker version

And you should see:

[email protected]:~# docker version
Client version: 1.0.0
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 63fe64c
Server version: 1.0.0
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 63fe64c