Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Docker on CentOS 6.6

Tags:

I'm trying to install Docker on CentOS 6.6 64 bit version. When execute

sudo yum install docker 

I get this

Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Install Process Loading mirror speeds from cached hostfile   * base: mirrors.psychz.net   * extras: centos-distro.cavecreek.net   * updates: distro.ibiblio.org No package docker available. Error: Nothing to do 
like image 565
Iqbal Avatar asked Feb 12 '15 17:02

Iqbal


People also ask

Can I install Docker on CentOS 6?

Docker has quickly become the most popular program for containerization. For CentOS users, that means an increase in the need to install Docker on CentOS. Luckily, the process for Docker installation on CentOS 6, CentOS 7, CentOS 8, and CentOS Stream is fairly simple.

Can I install Docker on CentOS?

To install Docker Engine, you need a maintained version of CentOS 7, CentOS 8 (stream), or CentOS 9 (stream). Archived versions aren't supported or tested. The centos-extras repository must be enabled. This repository is enabled by default, but if you have disabled it, you need to re-enable it.


2 Answers

Epel repository is not installed. Run

sudo yum install epel-release 

and then run

sudo yum install docker-io 
like image 69
rjaiswal Avatar answered Nov 01 '22 18:11

rjaiswal


I found the answer here

I needed to add the EPEL repository where Docker can be found.

like image 21
Iqbal Avatar answered Nov 01 '22 18:11

Iqbal