Skip to content

Instantly share code, notes, and snippets.

@jandradap
Last active July 31, 2017 10:39
Show Gist options
  • Select an option

  • Save jandradap/1537bbe47e7e1a2a94b07bf3d6448b4a to your computer and use it in GitHub Desktop.

Select an option

Save jandradap/1537bbe47e7e1a2a94b07bf3d6448b4a to your computer and use it in GitHub Desktop.
install docker-ce in redhat7
#!/bin/bash
# -*- ENCODING: UTF-8 -*-
#
# ------------------------------------------------------------------
# [Jorge Andrada Prieto] [[email protected]]
# Title: install_docker-ce_redhat7.sh
# Description: instala docker-ce en redhat7
# recomendable usar CentOS ya que puede ser deprecated en el futuro
# https://docs.docker.com/engine/installation/#server
# https://docs.docker.com/engine/installation/linux/docker-ce/centos/#install-from-a-package
# ------------------------------------------------------------------
#
#instalar dependencias
yum makecache fast
yum install -y yum-utils
yum-config-manager --enable rhel-7-server-extras-rpms
yum makecache fast
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2 \
policycoreutils \
libsemanage \
audit-libs \
setools-libs \
python-IPy \
policycoreutils-python \
libtool-ltdl \
libsemanage-python \
libseccomp \
libcgroup \
container-selinux \
checkpolicy \
audit-libs-python
#habilitar repositorio de docker
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
#instalar docker-ce
yum -y install docker-ce
systemctl enable docker
systemctl start docker
#test
docker version
docker ps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment