Docker in Slackware 14.2
First, install sbopkg: https://sbopkg.org/
Make sure you have the (standard 14.2) gcc-go package installed.
Select preferred editor before starting sbopkg (default is vi):
> export EDITOR=nano > sbopkg
From sbopkg, download, build and install tini and Go:
tini google-go-lang
After google-go-lang is installed, quit sbopkg and make sure to add the path to the new go-binary in ~/.bashrc (check the go version):
PATH=$PATH:/usr/lib64/go1.16.3/go/bin
Logout and login from the terminal session or run:
> . ~/.bashrc
Start sbopkg again and build these packages in the given order:
docker-proxy
libseccomp
runc
containerd
docker
docker-cli
docker-compose
You have to edit the .Slackbuilds for all the packages in bold above before building them and add “GO111MODULE=auto \” before the row that contains the GOPATH row (Select “Custom/Edit Slackbuild” from the package menu in sbopkg).
Slackbuild: . . . GO111MODULE=auto \ GOPATH=$TMP/$SRCNAM-$VERSION/build
Good luck! If everything worked as it should, let’s try Docker out and create a minimal Dockerfile:
# Text file named Dockerfile FROM busybox ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-amd64.tar.gz /tmp/ RUN gunzip -c /tmp/s6-overlay-amd64.tar.gz | tar -xf - -C / ENTRYPOINT ["/init"] > chmod +x /etc/rc.d/rc.docker > /etc/rc.d/rc.docker start > docker build -t s6demo . > docker run -ti s6demo /bin/sh
Or why not try to run Slackware in Docker?
(from http://www.slackware.com/~vbatts/docker/)
docker run -i -t vbatts/slackware bash