Skip to content
Advertisement

Getting 32 bit Centos docker image

I was trying to run 32 bit Centos in container:

sudo docker run -it i386/centos:6

Inside container I run command uname-a in order to know it is 32 bit. Got output:

4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

According to my understanding it is 64 bit version and not expected 32 bit one?

What I do wrong while getting 32 bit Centos?

Advertisement

Answer

Containers share kernel with the host system. Thats why you see ubuntu in the output which is your host system kernel. These containers only have 32bit packages installed and they will work fine with your 64bit kernel.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement