The installation stopped in the middle

I manually added the repo to /etc/apt/sources.list.d, e.g.:

echo "deb https://get.docker.io/ubuntu docker main" > /etc/apt/sources.list.d/docker.list

followed by an apt-get update and an apt-get install lxc-docker-0.11.1.

You could accomplish the same thing by installing docker via the script as described in the discourse installation instructions and following that up with an apt-get install lxc-docker-0.11.1.