anuragbomma

3 years ago

Unable to install Docker on CentOS 6

I started learning Docker Course. Currently, I am using Ubuntu 12.04. I have created a centos 6 image from the Lab Server. After connecting to the server, getting error as:
[root@ip-172-31-96-216 ~]# yum install docker-io
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
Illegal instruction

[root@ip-172-31-96-216 ~]# yum update
Loaded plugins: fastestmirror, presto
Setting up Update Process
Loading mirror speeds from cached hostfile
Illegal instruction

Can someone please help with this??

Image of wiktor
wiktor
3 years ago
Hi, as far as I know docker requires at least centos7 and kernel newer than 3.10 to work. Check uname -r on that machine.
Image of anuragbomma
anuragbomma
3 years ago
Hey, Thanks for the reply. The uname -r on that machine is 2.6.32-642.el6.x86_64. Will try with Centos 7 and will keep updated.
Image of anuragbomma
anuragbomma
3 years ago
Its working now - Thanks
Image of wiktor
wiktor
3 years ago
great to hear that it works now. and as you can see your kernel version in centos6 was way too old to support docker containers...
Image of anuragbomma
anuragbomma
3 years ago
Yes, that's true. Resolved the issue - Thanks