To install Docker on Debian: apt-get install docker.io (note it's NOT just "docker", that's an entirely unrelated package)
To just test building a random image a http server without state is a good candidate.
Updating an image
Updating CI docker images
When updating CI images followind the documentation on mediawiki. However the basic process is