Public Repository

Last pushed: a year ago
Short Description
Ubuntu for i386 (32bit)
Docker Pull Command
Owner
32bit

Comments (5)
professorkaos64
10 months ago

ioft maintains a great alternative that is based on Official i386 Ubuntu Core: https://hub.docker.com/r/ioft/i386-ubuntu/. This contains the workaround for linux32 in the Dockerfile

daald
2 years ago

See alternative implementation https://hub.docker.com/r/daald/ubuntu32/ which is based on scripts for the official ubuntu docker images

daald
2 years ago

For me it's clear: uname -a returns information about the kernel, not about the files running on it. You can even run a complete 32bit host system with a 64bit kernel.

The image itself contains 32bit binaries, you can see this using:
me$ docker run 32bit/ubuntu:14.04 file /bin/uname
/bin/uname: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=37b8ce0428201caea3f71c7e6ab88955a3db7df3, stripped

(note the Intel 80386)

What's wrong is that the container didn't switch its arch state:

me$ docker run 32bit/ubuntu:14.04 /bin/uname -m
x86_64

You can switch this using linux32:

me$ docker run 32bit/ubuntu:14.04 linux32 /bin/uname -m
i686

Unfortunately,

ENTRYPOINT ["/usr/bin/linux32", "/bin/sh", "-c"]

didn't work for me

I reported a bug: https://github.com/docker-32bit/ubuntu/issues/12

silgarth
2 years ago

Any input on srl295's question? I ran the script from ttps://github.com/docker-32bit/ubuntu and same similar uname results.

srl295
2 years ago

docker 1.8.1 on fedora 22. Images "work" great but seem to be 64 bit. Am I doing somethign wrong?

$ docker run -t -i 32bit/ubuntu:14.04 /bin/uname -a
Linux ddf985e225c9 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ docker run -t -i 32bit/ubuntu-upstart:14.04 /bin/uname -a
Linux 4f431db7fcd1 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ docker run -t -i ubuntu /bin/uname -a
Linux 4eaeafe0e091 4.1.6-200.fc22.x86_64 #1 SMP Mon Aug 17 19:54:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux