Last active
July 31, 2017 10:39
-
-
Save jandradap/1537bbe47e7e1a2a94b07bf3d6448b4a to your computer and use it in GitHub Desktop.
install docker-ce in redhat7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # -*- ENCODING: UTF-8 -*- | |
| # | |
| # ------------------------------------------------------------------ | |
| # [Jorge Andrada Prieto] [jandradap@gmail.com] | |
| # 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