Enjoy Slackware 15.0!

Welcome to the Slackware Documentation Project

Docker on Slackware

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.

Steps to install

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
Log out (from root) and log back in again before you continue to install the rest of the docker packages. As an alternative it may be enough to simply run:
# 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

Running Docker

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

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

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.


* Original Author User bifferos

* Special thanks to ponce, see this thread

In Other Languages
Translations of this page?:
QR Code
QR Code howtos:cloud:docker (generated for current page)