Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any Official roadmap for docker 32 bit containers on 32-bit H/W? Please suggest #7513

Closed
newtonkishore opened this issue Aug 10, 2014 · 20 comments
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny

Comments

@newtonkishore
Copy link

No description provided.

@remram44
Copy link
Contributor

Duplicates #611?

@jokeyrhyme
Copy link

@remram44 not quite an exact duplicate. #611 is about running 32-bit containers on a 64-bit host. I can't read @newtonkishore's mind, but maybe this ticket is just about 32-bit in general, or 32-bit on 32-bit?

@newtonkishore newtonkishore changed the title Is there any Official roadmap for docker 32 bit containers? Please suggest Is there any Official roadmap for docker 32 bit containers on 32-bit H/W? Please suggest Sep 2, 2014
@newtonkishore
Copy link
Author

@jokeyrhyme Thanks for the comment. I have 32-bit hardware architecture, is it possible to run dockers on that, last i heard docker is supported only on 64 bit arch. Any help would be appreciated. Thanks in advance.

@Kentoseth
Copy link

Apparently this guy has got a 32-bit version of Docker (meaning that it will run on the 32-bit architecture and H/W):

https://github.com/rcsavage/Docker-1.2.0-i686

I think he made it run on Fedora, but tests for Ubuntu/CentOS would be welcomed.

@dashohoxha
Copy link

I have been able to build 32bit images on Ubuntu 14.04 32bit:

Until Docker has official support for 32bit images, I would suggest that we form a community for building and maintaining them, so that we could help each-other.

@Kentoseth
Copy link

@dashohoxha -

So we need the updated version of Ubuntu to use the newer kernel, etc. so that Docker can run on it ? Last I saw, Docker didn't support the older kernels.

👍 To the idea of creating an informal 32-bit Docker community.

@dashohoxha
Copy link

I have Xubuntu 14.04, non-PAE, and my kernel (from uname -r) is 3.13.0-37-generic. I don't know whether you have something older than this. My output for docker version is

Client version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version: 1.0.1
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 990021a

I have tried many things, but I think that I just installed it with apt-get install docker.io, without compilation etc.

@dashohoxha
Copy link

@SvenDowideit
Copy link
Contributor

Hey guys,

you could form a discussion group on https://forums.docker.com to keep the info up to date :)

@dashohoxha
Copy link

I think that GitHub is the best place for discussion too (not only for coding).
Anyway, I have started a topic here: https://forums.docker.com/t/docker-32bit-images/349?u=dashohoxha

@Kentoseth
Copy link

It's not like 32-bit containers are first-class citizens in Docker in any case. So discussion here and in our repo/group should suffice.

If the Docker team does decide to recognize 32-bit containers, then we can probably move the discussion to where it is visible to the team (their forum).

@anil18
Copy link

anil18 commented Dec 5, 2014

hi dashohoxha,
i try to install the docker on 32 bit ubuntu 12.04 but i got a error like
$ sudo apt-get -y install git linux-image-extra-$(uname -r) lxc xz-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-extra-3.8.0-29-generic
E: Couldn't find any package by regex 'linux-image-extra-3.8.0-29-generic'

please help me how to install docker in 32 bit ubuntu 12.04. with little more explanation.

@Kentoseth
Copy link

Hi @anil18

Can you open (copy/paste) the issue here:

https://github.com/docker-32bit/ubuntu

I think I have a rough idea why it isn't installing on 32-bit 12.04

@dashohoxha
Copy link

@anil18
The messages above have all that I know about installing docker in 32bit ubuntu.
I am repeating them:

  1. apt-get install docker.io
  2. Look at: http://www.tekhead.org/blog/2014/09/installing-docker-on-ubuntu-quick-fix/

Maybe @Kentoseth can give you more help.

By the way, I have stopped using docker on 32bit ubuntu (because I find docker not very suitable while you are developing). I use chroot instead. I do it like this:

  1. Pull the 32bit image from the repository.

  2. Export it to a tgz archive.

  3. Extract the tgz archive to a dir (for example /data/btr/).

  4. Use this script to start and stop the services inside the chroot environment:

    #!/bin/bash
    
    CHROOT='/data/btr'
    
    case "$1" in
    start)
        # mount /proc etc. to the CHROOT
        for dir in proc dev sys dev/pts
        do
            mount -o bind /$dir $CHROOT/$dir
        done
        chroot $CHROOT/ mount -a
        cp /etc/resolv.conf $CHROOT/etc/resolv.conf
    
        # start the services inside the CHROOT
        chroot $CHROOT/ /etc/init.d/mysql start
        chroot $CHROOT/ /etc/init.d/apache2 start
        ;;
    
    stop)
        # stop the services inside the CHROOT
        chroot $CHROOT/ /etc/init.d/apache2 stop
        chroot $CHROOT/ /etc/init.d/mysql stop
    
        # kill any processes that are running on CHROOT
        chroot_pids=$(for p in /proc/*/root; do ls -l $p; done | grep $CHROOT | cut -d'/' -f3)
        test -z "$chroot_pids" || (kill -9 $chroot_pids; sleep 2)
    
        # umount /proc etc. from the CHROOT
        chroot $CHROOT/ umount -a
        for dir in dev/pts sys dev proc
        do
            umount $CHROOT/$dir
        done
        ;;
    *)
        echo " * Usage: $0 {start|stop}"
    esac

@Kentoseth
Copy link

@dashohoxha

Should we keep maintaining the 32-bit repo though?

I'm sure Docker could be useful on older machines, and it may be able to live together with the 64-bit version.

@dashohoxha
Copy link

It can be used for deployment (on old machines).
But if nobody uses it, maybe there is no need to maintain it.

@ggrandes
Copy link

ggrandes commented Jan 7, 2015

+1 to i386 and ARM (like raspberry & banana pi); where a hypervisor is too heavy.

@dashohoxha
Copy link

@ggrandes All the 32bit projects (https://github.com/docker-32bit) have a script build-image.sh which builds the image for the i386 arch. If you want to build images for ARM you can fork them and make some minor changes (find i386 and replace it with arm, find 32bit and replace it with ARM or something similar).
Maybe you could also improve the scripts so that they take the architecture as a parameter.

@jessfraz jessfraz added the kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny label Feb 27, 2015
@calavera
Copy link
Contributor

calavera commented May 1, 2015

Hi,

as expressed in #611, this is something that Docker is not going to officially pursue, at least for now. It's great that there is someone in the community leading this effort. Please refer to those repos if you need help or have feedback about it.

I'm closing this issue. Thanks again for letting us know about your use case.

@calavera calavera closed this as completed May 1, 2015
@techtonik
Copy link

LXD worked for me better as a replacement for 32-bit Docker - https://github.com/lxc/lxd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny
Projects
None yet
Development

No branches or pull requests