Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Oracle Linux 7

This container uses the public-yum configured repositories

Use at own risk, this should be considered a proof of concept.

Sample Run using boot2docker

$ boot2docker up
2014/07/22 15:38:09 Waiting for VM to be started...
........
2014/07/22 15:38:33 Started.
2014/07/22 15:38:33 Your DOCKER_HOST env variable is already set correctly.

$ docker pull dbehnke/ol7:latest
Pulling repository dbehnke/ol7
0a1461098348: Download complete

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
dbehnke/ol7         latest              0a1461098348        20 minutes ago      300 MB

$ docker run -i -t dbehnke/ol7:latest /bin/bash
bash-4.2# cat /etc/oracle-release
Oracle Linux Server release 7.0
bash-4.2#

Build your own OL7 container:

Basically, you will need to install Oracle Linux 7 and Docker on same machine and create the image from there.

Download and Install OL7

You can use install scripts and information from here:

https://github.com/dbehnke/packer-oraclelinux-7

Install Docker

Add the EPEL Repository

Docker is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution.

First, we’ll install the EPEL repository:

rpm -iUvh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm

Then, as a matter of best practice, we’ll update our packages:

yum update -y

Installation

Now let’s install Docker by installing the docker-io package:

yum -y install docker-io

Once the installation completes, we’ll need to start the Docker daemon:

systemctl docker start

Make the OL7 Docker Image

#!/bin/bash
wget https://gist.githubusercontent.com/dbehnke/9a201373b6e91eaa5a1a/raw/ed3d3da3b91e90a8cf65317e2c0404d02a495317/docker-ol7-mkimage.sh
chmod +x docker-ol7-mkimage.sh
sudo ./docker-ol7-mkimage.sh youruserid/ol7
Docker Pull Command
Owner
dbehnke