Getting 32 bit Centos docker image

2019-08-24 06:42发布

问题:

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?

回答1:

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.



标签: linux docker