INSTALACIÓN DE DOCKER

$ cd /etc/yum.repos.d/
$ ls

CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-Media.repo    CentOS-Vault.repo
CentOS-CR.repo    CentOS-fasttrack.repo  CentOS-Sources.repo
 
# vim CentOS-Base.repo (con superusuario)



Para cerrar vim, presionar ctrl + c y tipear :wq
# yum instal docker

Luego nos pedirá confirmación, seleccionar “y”

Error:
“Existing lock /var/run/yum.pid: another copy is running as pid 18756.
Another app is currently holding the yum lock; waiting for it to exit...”
 
$ kill -9 18756 
Error:
“centos7 is not in the sudoers file.  This incident will be reported.”
 
Abre el archivo
# nano /etc/sudoers

Luego agrega el usuario bajo el usuario admin como sigue:
user_name ALL=(ALL)  ALL
 
Otra forma de instalar es descargando el instalador desde:


Una vez instalado revisar la versión con:
# docker –version
# docker info
# systemctl status docker
# systemctl start docker
# systemctl enable docker
# docker images