@jr_bob_dobbs:
If you're concerned about running programs you want to try before "committing" them to your machine, you might be better out just installing debian or something in a chroot. It's fairly easy to set up with debootstrap, and a simple script for entering/leaving the chroot. Hell, LXC might even be a pretty good option for this.
Docker is fine, but it only adds in value that you can manage and create containers in a stateless way; one you're done with them, you remove them, and you can just make a new one from a debian base image whenever you need one again. You don't have to worry about messing up the container because if you do, you simply start over from your base image. You could emulate this yourself with overlayfs and some scripting, but it's simply not as handy as docker.
As for building Docker, I did this myself recently, mostly following the Arch PKGBUILD:
https://git.archlinux.org/svntogit/c...ackages/docker
Why Arch, instead of SlackBuilds? Because the SlackBuilds for Docker are, frankly, a mess. Most of the dependencies of docker aren't stable yet, and need weird compilation instructions. This PKGBUILD includes everything docker needs, with the correct versions for everything.
I made my own packaging script, in which I tried to clean up Arch's build script:
http://chunk.io/midkid/9c263adc34f244cc835f72c402030423
The only dependencies for this are go, libseccomp, and optionally, go-md2man.
The build process consists of simply setting up a correct GOPATH, and building, in order: Docker (engine, cli), runc, containerd, tini and proxy. Some of these are picky about where you run make from, such as runc, and how you call go build, such as gen-manpages.
EDIT: Oh, I forgot to mention, there's actually a quick&dirty way of installing Docker, but it involves a script that calls upon git, which is why it isn't really suitable for the packaging script standards a lot of distros try to uphold. This method is described in VoidLinux' script:
https://github.com/voidlinux/void-pa...ocker/template
It consists of downloading docker-ce, and in the components/engine directory calling hack/make.sh with AUTO_GOPATH=1, along with hack/dockerfile/install-binaries.sh, which you'll have to modify using sed if you want to install to a prefix other than /usr/local.
Of course, this won't include manpages and as such is a far cry from a proper packaging method for Docker.