There's a Slackware package for Docker on Slackbuilds, but there is a small caveat when installing. In case you are wondering, the docker build gives you the CE version of Docker.
As root, first install skpkg:
# git clone https://github.com/dslackw/slpkg.git # cd slpkg # python setup.py install # slpkg update
Next you must install google-go-lang
slpkg -s sbo google-go-lang
# source /etc/profile.d/go.sh
# slpkg -s sbo tini # slpkg -s sbo docker-proxy # slpkg -s sbo libseccomp # slpkg -s sbo runc # slpkg -s sbo containerd # slpkg -s sbo docker # slpkg -s sbo docker-compose
Next ensure docker starts on boot. Edit /etc/rc.d/rc.local, add this:
# Start docker if [ -x /etc/rc.d/rc.docker ]; then /etc/rc.d/rc.docker start fi
Also, in /etc/rc.d/rc.local_shutdown add this to ensure a clean shutdown:
# Stop docker if [ -x /etc/rc.d/rc.docker ]; then /etc/rc.d/rc.docker stop fi
Now you can start docker:
# chmod 755 /etc/rc.d/rc.docker # /etc/rc.d/rc.docker start
Check /var/log/docker.log for any issues.