LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-27-2020, 06:57 PM   #1
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Rep: Reputation: 45
Docker on Slackware -current


Howdy!

Has anyone been able to get Docker to run on Slackware -current?
 
Old 07-27-2020, 07:29 PM   #2
drgibbon
Member
 
Registered: Nov 2014
Distribution: Slackware64 -current
Posts: 713

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
Yep, it's on SBo and runs no problem. You might also be interested in vbatts' page on it, he provides some minimal images for Slackware.
 
1 members found this post helpful.
Old 07-27-2020, 07:38 PM   #3
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Original Poster
Rep: Reputation: 45
Thanks,

I actually tried the SBo package, it failed to build....so I thought I would ask.
 
Old 07-27-2020, 08:46 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,171

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
you need to install all dependencies first and don't forget to use "su -" instead of just plain "su"
here are the build order:
Code:
tini
google-go-lang
docker-proxy
libseccomp
runc
containerd
docker
 
4 members found this post helpful.
Old 07-27-2020, 09:15 PM   #5
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Original Poster
Rep: Reputation: 45
Good stuff, I will give that a go.

Thanks.

Last edited by Mobile1; 07-27-2020 at 09:53 PM.
 
Old 07-27-2020, 11:28 PM   #6
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 5,527

Rep: Reputation: Disabled
and don't forget to logout from your root session and login again after having installed google-go-lang: it's required to build some of the dependencies as this way some files in /etc/profile.d will be sourced to use google's go compiler instead of gcc's one, it's explained in google-go-lang's README.
I too can confirm that it builds and runs fine on current as I tested just yesterday.

Last edited by ponce; 07-27-2020 at 11:45 PM.
 
1 members found this post helpful.
Old 07-28-2020, 12:38 AM   #7
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 275

Rep: Reputation: 172Reputation: 172
Docker runs on both -current and 14.2 just fine; you don't even have to do a full build from source, just the static binaries from https://download.docker.com/linux/static/stable/x86_64/ will do.

You can also apply my https://github.com/zakame/docker-ce-SlackBuild to install slackware packages based from the static binary package.

Good luck!
 
3 members found this post helpful.
Old 07-28-2020, 05:19 PM   #8
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Original Poster
Rep: Reputation: 45
Did any of you also get docker-compose & docker-machine installed as well?
 
Old 07-28-2020, 06:27 PM   #9
dubfan
LQ Newbie
 
Registered: Sep 2012
Location: Washington State, USA
Posts: 3

Rep: Reputation: Disabled
I have docker-compose 1.25.1 running on -current. It has a rather long list of dependencies (and dependencies of dependencies) so it's a bit of a chore, but it works fine once it's installed. At one point I was going to create a script to automate the installation of it but I got distracted.
 
1 members found this post helpful.
Old 07-28-2020, 07:36 PM   #10
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,171

Rep: Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396Reputation: 1396
if you use sbopkg, you can generate queue file for that
 
1 members found this post helpful.
Old 07-29-2020, 12:57 AM   #11
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 275

Rep: Reputation: 172Reputation: 172
For docker-compose you don't even have to install it, so long as you already have Docker running: just grab the run.sh script and go:

Code:
curl -Lo docker-compose https://github.com/docker/compose/releases/download/1.26.2/run.sh && chmod +x ./docker-compose
This will pull d-c as a Docker image that can run as a container app a la Flatpak/AppImage; run it at least once, even with just ./docker-compose help.

docker-machine is a bit more trouble, though the release binaries themselves are relatively straightforward to install; its the machine-drivers that you'll need to further set up, which will depend on whether you want/need (e.g. whether you'd be using docker-machine-kvm for driving libvirt machines, or use an external cloud driver entirely.)
 
1 members found this post helpful.
Old 07-29-2020, 11:47 AM   #12
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Original Poster
Rep: Reputation: 45
I'm actually taking a Udemy course on Docker & Kubernetes - so I'm hacking my way through getting the environment setup....I'm just not that savvy when it comes to figuring this stuff out on Slackware. On Centos it was easy peasy, but I want to stay with Slackware, so.....I'm doing it the hard way I guess : )
 
Old 07-29-2020, 04:53 PM   #13
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,441

Rep: Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108Reputation: 2108
Quote:
Originally Posted by Mobile1 View Post
I'm actually taking a Udemy course on Docker & Kubernetes - so I'm hacking my way through getting the environment setup....I'm just not that savvy when it comes to figuring this stuff out on Slackware. On Centos it was easy peasy, but I want to stay with Slackware, so.....I'm doing it the hard way I guess : )
My advice: follow the course on a CentOS 7 host machine (5 minutes to install it, plus one 1 minute to install Docker) and once you're proficient with Docker, you can always come back and install/use it on a Slackware host along with Slackware container images.

BTW, is that Jason Cannon's course you're following ?
 
Old 07-29-2020, 04:55 PM   #14
Mobile1
Member
 
Registered: Jun 2006
Location: Sardis, B.C.
Distribution: Slackware64 14.2+
Posts: 215

Original Poster
Rep: Reputation: 45
I actually did the course using Centos 7, and it's Bret Fishers course. I thought it would be fun to get it running on Slackware, because that's my flavor of Linux. I just bought Bret's course on Kubernetes this morning : )
 
Old 07-30-2020, 02:26 AM   #15
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 275

Rep: Reputation: 172Reputation: 172
It is fun, and easy enough, to run Docker + Kubernetes on Slackware. Minikube runs well enough once you've gotten docker-machine-driver-kvm2 set up to talk to libvirt (and you can reuse that driver for Swarm machines as well,) though if you're already have dockerd running, you can just run KinD or k3d to run k8s nodes in Docker without virtualization.

OTOH there really isn't anything Slackware specific for building Docker + Kubernetes tooling (as opposed to running, which might need some things like a new kernel and/or cgroups shims, depending on workload,) as many of these modern tools use Golang/Rust and often already release static binaries precisely to avoid portability concerns in the varying Linux distros.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Docker Engine 1.6 Debuts Alongside Docker Registry 2.0 and Compose 1.2.0 LXer Syndicated Linux News 0 04-17-2015 09:02 PM
LXer: Red Hat partners with Docker to create Linux/Docker software stack LXer Syndicated Linux News 0 03-12-2015 05:54 PM
LXer: Ubuntu LXD: Not a Docker replacement, a Docker enhancement LXer Syndicated Linux News 0 11-05-2014 08:40 PM
LXer: Docker Founder Explains What Docker is all About LXer Syndicated Linux News 0 08-21-2014 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration