LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-13-2014, 10:33 AM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Getting started with Docker


First question: is Docker incompatible with i386? If so, why SBo doesn't say a thing about it?

Anyways, I want to see what this "Linux containers" thing is about and decided to give Docker a try.

I've built it from SBo, created a docker group, assigned my user to it with:

Code:
# groupadd -r -g 281 docker
# usermod -a -G docker pedro
Started docker with:
Code:
/etc/rc.d/docker start
Went to start its daemon with:
Code:
docker -d
Which returns me:

Code:
2014/12/13 14:29:44 docker daemon: 1.3.1 4e9bbfa; execdriver: native; graphdriver:
[4f935441] +job serveapi(unix:///var/run/docker.sock)
2014/12/13 14:29:44 The Docker runtime currently only supports amd64 (not 386). This
will change in the future. Aborting.
 
Old 12-14-2014, 04:27 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by moisespedro View Post
First question: is Docker incompatible with i386?

Code:
2014/12/13 14:29:44 The Docker runtime currently only supports amd64 (not 386). This will change in the future. Aborting.
In what way didn't you just answer your own question I wonder?..
 
Old 12-14-2014, 06:30 AM   #3
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
Quote:
Originally Posted by moisespedro View Post
First question: is Docker incompatible with i386? If so, why SBo doesn't say a thing about it?

Anyways, I want to see what this "Linux containers" thing is about and decided to give Docker a try.

I've built it from SBo, created a docker group, assigned my user to it with:
My bad. I'll make a note to update the SBo. Docker has been linux-x86_64 only, for essentially silly reasons. Hopefully that will loosen up soon. In the meantime the SBo should note that it is only for x86_64 presently.
 
Old 12-14-2014, 07:56 AM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Quote:
Originally Posted by unSpawn View Post
In what way didn't you just answer your own question I wonder?..
I just wanted to be sure because there was nothing in SBo and it compiled fine.

EDIT: @vbatts, any good alternatives?
 
Old 12-14-2014, 08:25 AM   #5
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
If you are wanting to use docker, alternatives include waiting. It is not for lack of attention that i386 is not supported yet. Lots of eyes are on it. I suspect it will start opening up after the new year.
The issue is largely around the docker-registry support. The patch to allow the local docker daemon to use different arches (arm too) is a one liner. and if you are not pushing to the hub, perhaps that is an okay use-case.


Otherwise, you can look into the lxc toolchain, and not use docker for the time being, if ix86 is a current requirement.
 
Old 12-14-2014, 05:38 PM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Code:
commit aeb3113f2a1e6096f240bb9bb4b3de8d31e5ef73
Author: Vincent Batts <vbatts@hashbangbash.com>
Date:   Mon Dec 15 06:38:01 2014 +0700

    system/docker: Add note about requirement.
    
    Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>

diff --git a/system/docker/README b/system/docker/README
index 7afec75..d9c5e78 100644
--- a/system/docker/README
+++ b/system/docker/README
@@ -28,3 +28,5 @@ well, then append "swapaccount=1" to your kernel's parameters. This is often in
 /etc/lilo.conf, on the "append" variable.
 
 NOTE: google-go-lang is only needed at compile time - not needed for runtime.
+
+Docker doesn't support x86, only x86_64
diff --git a/system/docker/docker.info b/system/docker/docker.info
index fdcd39f..9039305 100644
--- a/system/docker/docker.info
+++ b/system/docker/docker.info
@@ -1,10 +1,10 @@
 PRGNAM="docker"
 VERSION="1.3.1"
 HOMEPAGE="https://docker.io/"
-DOWNLOAD="https://github.com/docker/docker/archive/v1.3.1.tar.gz"
-MD5SUM="098c366f9c8eb82ba537b93eec66303e"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/docker/docker/archive/v1.3.1.tar.gz"
+MD5SUM_x86_64="098c366f9c8eb82ba537b93eec66303e"
 REQUIRES="google-go-lang"
 MAINTAINER="Vincent Batts"
 EMAIL="vbatts@hashbangbash.com"
 
1 members found this post helpful.
Old 12-14-2014, 07:57 PM   #7
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
thanks Willy!
 
Old 12-16-2014, 01:29 AM   #8
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 295

Rep: Reputation: 181Reputation: 181
You can approximate around 80% of what a Docker container can give you (that is, lacking isolated networking,) via other tools. I remember using things like schroot on Debian back in the day; looking for Slackware port, it seems that vbatts already got that covered too in http://www.slackware.com/~vbatts/schroot/ .

To cover the remaining 20%, you might want to play around with OpenVZ Virtual Ethernet devices and/or Virtual Distributed Ethernet...
 
Old 12-16-2014, 12:05 PM   #9
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
true, but chroot and schroot do not handle the cgroups and namespaces. You could wrap some things up with unshare(1) and other tools, but there is a good deal more than just a change root. I do like schroot, and have since made the same workflow for myself using docker images instead. Having a way to distribute the image is much nicer now.
 
1 members found this post helpful.
  


Reply



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: Ubuntu LXD: Not a Docker replacement, a Docker enhancement LXer Syndicated Linux News 0 11-05-2014 08:40 PM
[SOLVED] bash script runs perfectly when started manually - but not when started by CRON jonasbdk Linux - General 12 08-27-2014 05:54 AM
LXer: Docker Founder Explains What Docker is all About LXer Syndicated Linux News 0 08-21-2014 09:20 PM
[SOLVED] No sound in KDE when started by startx while working fine when started by kdm/gdm arj1singh Ubuntu 2 12-14-2010 11:55 AM
Started nautilus as root....problems started Chaosbringer SUSE / openSUSE 0 11-05-2008 03:00 AM

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

All times are GMT -5. The time now is 01:03 AM.

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