Skip to content

Instantly share code, notes, and snippets.

@y-fedorov
Created February 14, 2018 11:44
Show Gist options
  • Save y-fedorov/687570b4f192d739f27105b9299e8f5d to your computer and use it in GitHub Desktop.
Save y-fedorov/687570b4f192d739f27105b9299e8f5d to your computer and use it in GitHub Desktop.
Install Docker Oracle Linux 7
#
# Install Docker Oracle Linux 7
# based on https://blogs.oracle.com/hlsu/install-docker-on-oracle-linux-7
#
# Preparation
sudo yum install -y vim
# cd /etc/yum.repos.d/
# curl -O http://yum.oracle.com/public-yum-ol7.repo
# vim public-yum-ol7.repo
[ol7_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol7_UEKR4]
name=Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/UEKR4/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
[ol7_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1
# yum install docker-engine
# systemctl start docker
# systemctl enable docker
usermod -aG docker $USER
docker pull oraclelinux:7-slim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment