Oracle Enterprise Linux 7.1 with Docker
- Language : English (United States)
- Date and Time: Chicago as Timezone, After enabling Network, enable NTP
- Installation Destination: Default Partitioning using LVOL & XFS file system
- Network & Hostname: iam.jhash.com, Select the MAC Address in configuration and select connect whenever available
- Set root password and create a new user demo with admin access
- Software selection minimal
- Ensure that there are two networks
- Network Host Only & VNet0 is selected. - This is for connectivity from local machine (Virtual Box)
- NAT - this is to connect to outside world from machine
- Login using demo
- sudo yum update (multiple times) and reboot
- sudo systemctl stop firewalld
- sudo systemctl disable firewalld
- sudo su -
- cat >/etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
- sudo yum install docker-engine
- sudo usermod -aG docker demo
- sudo chkconfig docker on
- Docker Compose
curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > docker-compose
sudo mv docker-compose /usr/local/bin
chmod +x /usr/local/bin/docker-compose
- TODO: add code to profile to automatically update docker-compose on start.
- docker run oraclelinux:7.0
- Docker can be installed from Oracle Yum
- Edit /etc/yum.repos.d/public-yum-ol7.repo and set enabled=1 in the [ol7_addons] stanza.
- sudo yum install docker
- sudo systemctl start docker.service
- sudo systemctl enable docker.service
- sudo yum remove docker