Ajeet Raina I am a Docker Captain, ARM Innovator & Docker Bangalore Community Leader. I am a maintainer of Collabnix blogging site. I work for Redis and a primary maintainer of https://developer.redis.com. I run Collabnix Community Slack with over 6500+ audience . We have built a popular projects like Docker Labs, KubeLabs, KubeTools and DockerTools. You can follow me on Twitter(@ajeetsraina) & GitHub(@ajeetraina)

Getting access to Docker Formatted Container Images on Red Hat Systems

2 min read

Just like Docker, Amazon and Red Hat too announced the availability of Docker formatted container images. This is purely an effort to enable Docker in production and targeted at the Enterprise business. Though I am more interested to try hands on Amazon’s offering but since I had couple of RHEL 7 machines in my lab, I just spent another 10 minutes to bring up Red Hat Container service to see what docker formatted container images they have to offer.

Here is how I began exploring the images –

Using Red Hat Container Service:

I assume you have RHEL 7.x machine installed in your VM or bare metal. Also, you will need Red Hat account to get access to their container service. I had an evaluation account which I used to go for it.

Register your system to Red Hat Network:

[root@localhost ~]# subscription-manager register –username=<username> –password=<passwd>
The system has been registered with ID: bff10bba-4381-4478-864f-ad29ade9499f

Wow.. it went straight-forward and registered my box.

Listing Red Hat Offering in place:
[root@localhost ~]# subscription-manager list –available
+——————————————-+
Available Subscriptions
+——————————————-+
Subscription Name: 30 Day Red Hat Enterprise Linux Server Self-Supported
Evaluation
Provides:          Red Hat Container Images Beta
Red Hat Beta
Red Hat Enterprise Linux Atomic Host Beta
Oracle Java (for RHEL Server)
Red Hat Container Images
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Atomic Host
SKU:               RH00065
Contract:
Pool ID:           8a85f98150566df901505fcaa6f56088
Available:         2
Suggested:         1
Service Level:     Self-Support
Service Type:      L1-L3
Subscription Type: Instance Based
Ends:              11/11/2015
System Type:       Physical

Yipee.. I have few things in place for me to try out, especially –

Red Hat Container Images

Red Hat Enterprise Linux Atomic Host

[root@localhost ~]# subscription-manager attach –pool=8a85f98150566df901505fcaa6f56088
Successfully attached a subscription for: 30 Day Red Hat Enterprise Linux Server Self-Supported Evaluation
[root@localhost ~]# subscription-manager repos –enable=rhel-7-server-extras-rpms
Repo ‘rhel-7-server-extras-rpms’ is enabled for this system.
[root@localhost ~]# subscription-manager repos –enable=rhel-7-server-optional-rpms
Repo ‘rhel-7-server-optional-rpms’ is enabled for this system.
[root@localhost ~]#

Let’s setup Docker installation quickly:

[root@localhost ~]# yum install docker docker-registry
Loaded plugins: langpacks, product-id, subscription-manager
rhel-7-server-extras-rpms                                | 2.9 kB     00:00
rhel-7-server-optional-rpms                              | 2.9 kB     00:00
rhel-7-server-rpms                                       | 3.7 kB     00:00
(1/3): rhel-7-server-extras-rpms/x86_64/primary_db         |  56 kB   00:03
(2/3): rhel-7-server-optional-rpms/7Server/x86_64/primary_ | 2.3 MB   00:34
(3/3): rhel-7-server-rpms/7Server/x86_64/primary_db        |  14 MB   03:24
(1/4): rhel-7-server-extras-rpms/x86_64/updateinfo         |  27 kB   00:02
(2/4): rhel-7-server-rpms/7Server/x86_64/group_gz          | 133 kB   00:03
(3/4): rhel-7-server-optional-rpms/7Server/x86_64/updatein | 458 kB   00:05
(4/4): rhel-7-server-rpms/7Server/x86_64/updateinfo        | 642 kB   00:06

Install docker and docker-registry: Install the docker package and, optionally, the docker-registry. (If not

already installed, install device-mapper-libs and device-mapper-event-libs as well.)

[root@localhost ~]# yum install device-mapper-libs device-mapper-event-libs
Loaded plugins: langpacks, product-id, subscription-manager
rhel-7-server-extras-rpms                                | 2.9 kB     00:00
rhel-7-server-optional-rpms                              | 2.9 kB     00:00
rhel-7-server-rpms                                       | 3.7 kB     00:00
Package 7:device-mapper-libs-1.02.93-3.el7_1.1.x86_64 already installed and latest version
Package 7:device-mapper-event-libs-1.02.93-3.el7_1.1.x86_64 already installed and latest version
Nothing to do

Good to see that it took device-mapper too into the picture.

Let’s start the Docker related services.

[root@localhost ~]# systemctl start docker.service
[root@localhost ~]# systemctl enable docker.service
[root@localhost ~]# systemctl status docker.service
docker.service – Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled)
Active: active (running) since Tue 2015-10-13 02:41:52 EDT; 13min ago
Docs: http://docs.docker.com
Main PID: 27801 (docker)
CGroup: /system.slice/docker.service
└─27801 /usr/bin/docker -d –selinux-enabled –add-registry regist…

Let’s check the docker version:

[root@localhost ~]# docker version
Client version: 1.7.1
Client API version: 1.19
Package Version (client): docker-1.7.1-115.el7.x86_64
Go version (client): go1.4.2
Git commit (client): 446ad9b/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Package Version (server): docker-1.7.1-115.el7.x86_64
Go version (server): go1.4.2
Git commit (server): 446ad9b/1.7.1
OS/Arch (server): linux/amd64

Lets starting pulling the RHEL supplied repository:

[root@localhost ~]#docker pull rhel6.5

Wow…I got my first image from Red Hat repository.

I will bring more interesting findings here. Stay tuned !!

Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina I am a Docker Captain, ARM Innovator & Docker Bangalore Community Leader. I am a maintainer of Collabnix blogging site. I work for Redis and a primary maintainer of https://developer.redis.com. I run Collabnix Community Slack with over 6500+ audience . We have built a popular projects like Docker Labs, KubeLabs, KubeTools and DockerTools. You can follow me on Twitter(@ajeetsraina) & GitHub(@ajeetraina)

What is a Dockerfile – A Step-By-Step Guide

A Dockerfile is a text file which contains a series of commands or instructions. These instructions are executed in the order in which they...
Ajeet Raina
21 min read

Docker Desktop for Linux,  Docker Extensions and more with…

Docker Desktop 4.8.2 is now available for download for Mac, Windows and Linux. Here are the major highlights: Docker Desktop for various Linux distributions made available for the first...
Ajeet Raina
1 min read

2 Replies to “Getting access to Docker Formatted Container Images on Red…”

Leave a Reply