SlideShare una empresa de Scribd logo
1 de 35
Insert
Custom
Session
QR if
Desired.
Filipe Miranda <fmiranda@redhat.com>
Global Lead for Red Hat Products on IBM z Systems and Power Systems
Red Hat Inc.
Red Hat Enterprise Linux for IBM z Systems
Linux Containers and Docker
Session# 16443
Red Hat, Inc. in a Nutshell
- Red Hat and the Open Source Community
Linux Containers
- Introduction to Linux Containers
Docker (Image Container)
- Demo of Docker on RHEL for z Systems
Openshift (PaaS Cloud)
- A glimpse of what LCX/Docker technologies can do
- What if we had OpenShift for z Systems?
Session Topics
© Copyright Red Hat, Inc. 2015
Red Hat in a Nutshell
© Copyright Red Hat, Inc. 2015
Red Hat bringing OpenSource technologies to Enterprises
© Copyright Red Hat, Inc. 2015
https://access.redhat.com/certifications
Hardware Certification List
© Copyright Red Hat, Inc. 2015
Linux Containers
Application Containers
(same kernel and /usr as the host system)
What is Linux Containers?
LinuX Containers (LXC) is an operating system-level virtualization method for running multiple isolated Linux
systems (containers) on a single control host (LXC host). LXC does not provide a virtual machine, but rather
provides a virtual environment that has its own CPU, memory, block I/O, network etc.
Linux container feature allows you to carve out containers as lightweight application sandboxes.
All host containers launched are identical – each runs the same user space as the host system, so all applications
running in host containers are based on the host user space and run time.
© Copyright Red Hat, Inc. 2015
Linux Containers
http://www.linuxjournal.com/content/containers—not-virtual-machines—are-future-cloud
The advantage of using Linux Containers:
Enables multiple running instances of an operating system or application on a single host, without inducing
overhead on CPU and memory.
Safely and securely run multiple applications on a single system without the risk of them interfering with each
other. If security of one container has been compromised, the other containers are unaffected.
Containers can be useful to quickly set up a “sandbox” environment, e.g. to test a new version of a Linux
distribution or to simulate a “clean” environment for testing/QA purposes.
© Copyright Red Hat, Inc. 2015
Linux Containers building blocks
Linux Containers are built using the following RHEL technologies:
•Resource Management - Control groups (CGroups)
•Filesystem Separation – Device mapperThin Provisioning
•Isolation - Namespaces
•Security - SELinux
•Tooling – Libvirt-lxc and virt-sandbox-service
Linux Containers
© Copyright Red Hat, Inc. 2015
Red Hat Enterprise Linux - Container Architecture
Linux Containers
© Copyright Red Hat, Inc. 2015
Resource Management with Cgroups
Linux Containers
© Copyright Red Hat, Inc. 2015
Red Hat Enterprise Linux - Container Architecture
Linux Containers
The kernel provides process isolation by creating separate namespaces for containers. Namespaces enable
creating an abstraction of a particular global system resource and make it appear as a separated instance to
processes within a namespace. Consequently, several containers can use the same resource simultaneously
without creating a conflict.
© Copyright Red Hat, Inc. 2015
• Mount : mounting/unmounting filesystems
Isolates the set of file system mount points seen by a group of processes so that processes in different mount
namespaces can have different views of the file system hierarchy.
• UTS : hostname, domainname
Isolates two system identifiers – nodename and domainname.This allows each container to have its own hostname
and NIS domain name, which is useful for initialization and configuration scripts based on these names
• IPC : SysV message queues, shared memory segments
Isolates certain interprocess communication (IPC) resources, such as System V IPC objects and POSIX message
queues.This means that two containers can create shared memory segments and semaphores with the same name,
but are not able to interact with other containers memory segments or shared memory.
• Network: IPv4/IPv6 stacks, routing, firewall
Provides isolation of network controllers, system resources associated with networking, firewall and routing tables.
• PID: Private /proc, multiple pid 1’s
Allows processes in different containers to have the same PID, so each container can have its own init (PID1) process
that manages various system initialization tasks as well as containers life cycle
Mount, UTS, IPC, Network, PID are fully supported in RHEL 7.0
Namespaces
Linux Containers
© Copyright Red Hat, Inc. 2015
Red Hat Enterprise Linux - Container Architecture
Linux Containers
© Copyright Red Hat, Inc. 2015
Red Hat Enterprise Linux - Container Architecture
Linux Containers
© Copyright Red Hat, Inc. 2015
Red Hat Enterprise Linux - Container Architecture
Linux Containers
© Copyright Red Hat, Inc. 2015
Red Hat Enterprise Linux - Container Architecture
Linux Containers
© Copyright Red Hat, Inc. 2015
Host based Application Container
Shared RHEL host based application container
•Generic application containers
•Run any command / package supported on the host system
•Systemd application containers
•Scale – launch 100s of containers using systemd
•/usr in container same as the host OS
Linux Containers
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Resource_Management_and_Linux_Containers_Guide/chap-Using_virsh.html
© Copyright Red Hat, Inc. 2015
Docker is a technology behind image-based containers
It is a tool and a format designed for shipping applications as self-contained units
Docker builds on the core capabilities of Linux containers, such as cgroups, namespaces and SELinux and also
depends to certain extent on the underlying operating system, namely on device mapper thin provisioning
and on systemd for resource management.
Docker : Image Based Containers
Image Containers
(same kernel different /usr and package set)
Application Containers
(same kernel and /usr as the host system)
© Copyright Red Hat, Inc. 2015
•Red Hat doing heavy lifting in Fedora to ensure Docker runs on a Red Hat based container stack
•Device mapper thin provisioning
•Replaces AUFS dependency in Docker
•Libvirt-lxc sandbox
•Replaces lxc-tools dependency in Docker
•SELinux
•Links: partnership and ongoing work
•http://tinyurl.com/RedHatDockerPR
•http://blog.docker.io/2013/09/red-hat-and-docker-collaborate/
Docker and Red Hat
© Copyright Red Hat, Inc. 2015
•Recently as a result of the collaboration between IBM and the open source community, Docker is finally
running on s390x systems (as well as PPC64)
•Docker was originally developed in Golang (only available to x86 systems)
•IBM and the open source community developed go-gcc (Docker have been ported to go-gcc)
•Docker can now run on Linux on IBM z Systems (and IBM Power Systems)
Docker on Linux for IBM z Systems
© Copyright Red Hat, Inc. 2015
Steps by Step:
Testing environment, Red Hat Enterprise Linux 7 running as a z/VM guest OS
1) Copy the Docker binary (IBM) to /usr/local/bin
2) Start Docker deamon:
[root@rhel7 ~]# docker -d
INFO[0000] +job serveapi(unix:///var/run/docker.sock)   
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) 
INFO[0006] +job init_networkdriver()                    
INFO[0008] -job init_networkdriver() = OK (0)           
INFO[0009] Loading containers: start.      
Demo of Docker running on RHEL for z Systems
© Copyright Red Hat, Inc. 2015
4)To use as a test subject, I created a standard RHEL on z z/VM guest and I created an image out of it in a tarball
file.
# tar -cvf rhel6-s390.tar --exclude=/root/rhel6-s390.tar --exclude=/proc
--exclude=/sys --one-file-system /
5 )from the test subject system, I copied it to the Docker system, using a simple scope command and then I
started the process to import that system image into Docker.
cat rhel6-s390.tar | docker import - rhel6-s390
8223b049356123458040c6167b5421c975054f31d4e72c3d8d7eadd8e439b9a1
© Copyright Red Hat, Inc. 2015
4) Check if the Docker image was imported correctly: 
[root@rhel7 ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
rhel6-s390          latest              8223b0493561        44 seconds ago      1.437 GB
5) Let’s now run a shell environment within the container we just imported into Docker:
[root@rhel7 ~]# docker run -i -t rhel6-s390 bash
[root@722f09e42426 /]# 
6) Once you have access to the shell within the container, check the process isolation:
[root@722f09e42426 /]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.1 100500  1844 ?        Ss   07:13   0:00 bash
root        24  0.0  0.1 100204  1120 ?        R+   07:15   0:00 ps aux
© Copyright Red Hat, Inc. 2015
7) From another terminal, if you issue the command docker ps, it will tell you what containers are running:
[root@rhel7 ~]# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS
              NAMES
0863965787ea        rhel6-s390:latest   "bash"              2 minutes ago       Up 2 minutes             
              goofy_feynman       
© Copyright Red Hat, Inc. 2015
[root@08dfb98ac145 /]# rhn_register 
8) Back to the original terminal, lets start a different application, for example
© Copyright Red Hat, Inc. 2015
[root@08dfb98ac145 /]# yum update
Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can
use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Update Process
Resolving Dependencies
Dependencies Resolved
. . .
Transaction Summary
============================================================================
Install      14 Package(s)
Upgrade     322 Package(s)
Total download size: 249 M
Is this ok [y/N]: n
9) Let’s try yum update to check if the registration worked
© Copyright Red Hat, Inc. 2015
[root@rhel7 ~]# docker commit 722f09e42426
07d308404e3edb04a580f0fce6d89887b717fd9e70ef1424a4be01412b5994fb
11)To identify the new image create a dog tag for that:
[root@rhel7 ~]# docker tag
07d308404e3edb04a580f0fce6d89887b717fd9e70ef1424a4be01412b5994fb
rhel6-s390-repo
12) Check the Docker images
[root@rhel7 ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
rhel6-s390          latest              8223b0493561        2 hours ago        1.437 GB
rhel6-s390-repo     latest              17ec773d1bcd         1 hours ago        1.437 GB
10)To keep the modified container, we can issue a commit command thus creating another container image that will
only have the modified files (in our case virtually no extra space):
© Copyright Red Hat, Inc. 2015
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
OpenShift is Red Hat's Platform-as-a-Service (PaaS) that allows developers to quickly develop, host, and scale
applications in a cloud environment.With OpenShift you have choice of offerings, including online, on premise,
and open source project options.
Red Hat Openshift is currently only available to x86 systems
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
Get StartedToday for Free
• Deploy Apps to the OpenShift OnLine Developer Preview
• Request an Evaluation of OpenShift Enterprise
• Join the OpenShift Origin Open Source Project community
http://openshift.redhat.com
Openshift - PaaS (private/public cloud)
© Copyright Red Hat, Inc. 2015
Filipe Miranda <fmiranda@redhat.com>
Global Lead for Red Hat Products on IBM z Systems and Power Systems
Red Hat Inc.

Más contenido relacionado

La actualidad más candente

Red hat on_power-ibm _lop_day_2015
Red hat on_power-ibm _lop_day_2015Red hat on_power-ibm _lop_day_2015
Red hat on_power-ibm _lop_day_2015cmilsted
 
SHARE.ORG in Boston Aug 2013 RHEL update for IBM System z
SHARE.ORG in Boston Aug 2013 RHEL update for IBM System zSHARE.ORG in Boston Aug 2013 RHEL update for IBM System z
SHARE.ORG in Boston Aug 2013 RHEL update for IBM System zFilipe Miranda
 
Develop, Deploy, and Innovate with Intel® Cluster Ready
Develop, Deploy, and Innovate with Intel® Cluster ReadyDevelop, Deploy, and Innovate with Intel® Cluster Ready
Develop, Deploy, and Innovate with Intel® Cluster ReadyIntel IT Center
 
Red Hat for IBM System z Update v5
Red Hat for IBM System z Update v5Red Hat for IBM System z Update v5
Red Hat for IBM System z Update v5Filipe Miranda
 
2010-11-08 NSA Technical Symposium
2010-11-08 NSA Technical Symposium2010-11-08 NSA Technical Symposium
2010-11-08 NSA Technical SymposiumShawn Wells
 
Isn’t it Ironic that a Redfish is software defining you
Isn’t it Ironic that a Redfish is software defining you Isn’t it Ironic that a Redfish is software defining you
Isn’t it Ironic that a Redfish is software defining you Bruno Cornec
 
Presentation on HP ProLiant value add tools on Linux
Presentation on HP ProLiant value add tools on LinuxPresentation on HP ProLiant value add tools on Linux
Presentation on HP ProLiant value add tools on LinuxBruno Cornec
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Linaro
 
HKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteHKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteLinaro
 
“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...
“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...
“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...Edge AI and Vision Alliance
 
Hp cmu – easy to use cluster management utility @ hpcday 2012 kiev
Hp cmu – easy to use cluster management utility @ hpcday 2012 kievHp cmu – easy to use cluster management utility @ hpcday 2012 kiev
Hp cmu – easy to use cluster management utility @ hpcday 2012 kievVolodymyr Saviak
 
IPMI is dead, Long live Redfish
IPMI is dead, Long live RedfishIPMI is dead, Long live Redfish
IPMI is dead, Long live RedfishBruno Cornec
 
Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...
Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...
Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...Cesar Maciel
 
Redfish & python redfish
Redfish & python redfishRedfish & python redfish
Redfish & python redfishRené Ribaud
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineLinaro
 
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3Qualcomm Developer Network
 
Introduction to Civil Infrastructure Platform
Introduction to Civil Infrastructure PlatformIntroduction to Civil Infrastructure Platform
Introduction to Civil Infrastructure PlatformSZ Lin
 
[ELCE] Activities of super long term support kernel workgroup in civil infras...
[ELCE] Activities of super long term support kernel workgroup in civil infras...[ELCE] Activities of super long term support kernel workgroup in civil infras...
[ELCE] Activities of super long term support kernel workgroup in civil infras...SZ Lin
 

La actualidad más candente (20)

Red hat on_power-ibm _lop_day_2015
Red hat on_power-ibm _lop_day_2015Red hat on_power-ibm _lop_day_2015
Red hat on_power-ibm _lop_day_2015
 
SHARE.ORG in Boston Aug 2013 RHEL update for IBM System z
SHARE.ORG in Boston Aug 2013 RHEL update for IBM System zSHARE.ORG in Boston Aug 2013 RHEL update for IBM System z
SHARE.ORG in Boston Aug 2013 RHEL update for IBM System z
 
Develop, Deploy, and Innovate with Intel® Cluster Ready
Develop, Deploy, and Innovate with Intel® Cluster ReadyDevelop, Deploy, and Innovate with Intel® Cluster Ready
Develop, Deploy, and Innovate with Intel® Cluster Ready
 
Red Hat for IBM System z Update v5
Red Hat for IBM System z Update v5Red Hat for IBM System z Update v5
Red Hat for IBM System z Update v5
 
2010-11-08 NSA Technical Symposium
2010-11-08 NSA Technical Symposium2010-11-08 NSA Technical Symposium
2010-11-08 NSA Technical Symposium
 
Isn’t it Ironic that a Redfish is software defining you
Isn’t it Ironic that a Redfish is software defining you Isn’t it Ironic that a Redfish is software defining you
Isn’t it Ironic that a Redfish is software defining you
 
Presentation on HP ProLiant value add tools on Linux
Presentation on HP ProLiant value add tools on LinuxPresentation on HP ProLiant value add tools on Linux
Presentation on HP ProLiant value add tools on Linux
 
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
Andrew J Younge - Vanguard Astra - Petascale Arm Platform for U.S. DOE/ASC Su...
 
Rh401 rhel5.2
Rh401 rhel5.2Rh401 rhel5.2
Rh401 rhel5.2
 
HKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening KeynoteHKG18-100K1 - George Grey: Opening Keynote
HKG18-100K1 - George Grey: Opening Keynote
 
“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...
“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...
“Khronos Group Standards: Powering the Future of Embedded Vision,” a Presenta...
 
Hp cmu – easy to use cluster management utility @ hpcday 2012 kiev
Hp cmu – easy to use cluster management utility @ hpcday 2012 kievHp cmu – easy to use cluster management utility @ hpcday 2012 kiev
Hp cmu – easy to use cluster management utility @ hpcday 2012 kiev
 
IPMI is dead, Long live Redfish
IPMI is dead, Long live RedfishIPMI is dead, Long live Redfish
IPMI is dead, Long live Redfish
 
Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...
Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...
Heterogeneous Computing on POWER - IBM and OpenPOWER technologies to accelera...
 
Redfish & python redfish
Redfish & python redfishRedfish & python redfish
Redfish & python redfish
 
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainlineHKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
HKG18-501 - EAS on Common Kernel 4.14 and getting (much) closer to mainline
 
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
Developing for Industrial IoT with Linux OS on DragonBoard™ 410c: Session 3
 
Introduction to Civil Infrastructure Platform
Introduction to Civil Infrastructure PlatformIntroduction to Civil Infrastructure Platform
Introduction to Civil Infrastructure Platform
 
ZCX Hybrid Application
ZCX Hybrid ApplicationZCX Hybrid Application
ZCX Hybrid Application
 
[ELCE] Activities of super long term support kernel workgroup in civil infras...
[ELCE] Activities of super long term support kernel workgroup in civil infras...[ELCE] Activities of super long term support kernel workgroup in civil infras...
[ELCE] Activities of super long term support kernel workgroup in civil infras...
 

Similar a Linux Containers and Docker SHARE.ORG Seattle 2015

OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installationRobert Bohne
 
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfOpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfssuser9e06a61
 
Develop with linux containers and docker
Develop with linux containers and dockerDevelop with linux containers and docker
Develop with linux containers and dockerFabio Fumarola
 
Docker Application to Scientific Computing
Docker Application to Scientific ComputingDocker Application to Scientific Computing
Docker Application to Scientific ComputingPeter Bryzgalov
 
Accelerate your development with Docker
Accelerate your development with DockerAccelerate your development with Docker
Accelerate your development with DockerAndrey Hristov
 
Accelerate your software development with Docker
Accelerate your software development with DockerAccelerate your software development with Docker
Accelerate your software development with DockerAndrey Hristov
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and DockerFabio Fumarola
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Arun prasath
 
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...OpenShift Origin
 
Oscon 2017: Build your own container-based system with the Moby project
Oscon 2017: Build your own container-based system with the Moby projectOscon 2017: Build your own container-based system with the Moby project
Oscon 2017: Build your own container-based system with the Moby projectPatrick Chanezon
 
Evolution of Linux Containerization
Evolution of Linux Containerization Evolution of Linux Containerization
Evolution of Linux Containerization WSO2
 
Evoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationEvoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationImesh Gunaratne
 
Dev opsec dockerimage_patch_n_lifecyclemanagement_
Dev opsec dockerimage_patch_n_lifecyclemanagement_Dev opsec dockerimage_patch_n_lifecyclemanagement_
Dev opsec dockerimage_patch_n_lifecyclemanagement_kanedafromparis
 
Linux containers and docker
Linux containers and dockerLinux containers and docker
Linux containers and dockerFabio Fumarola
 
Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7Etsuji Nakai
 
Containers - Portable, repeatable user-oriented application delivery. Build, ...
Containers - Portable, repeatable user-oriented application delivery. Build, ...Containers - Portable, repeatable user-oriented application delivery. Build, ...
Containers - Portable, repeatable user-oriented application delivery. Build, ...Walid Shaari
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetesKrishna-Kumar
 
Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017Patrick Chanezon
 
Veer's Container Security
Veer's Container SecurityVeer's Container Security
Veer's Container SecurityJim Barlow
 

Similar a Linux Containers and Docker SHARE.ORG Seattle 2015 (20)

Docker-v3.pdf
Docker-v3.pdfDocker-v3.pdf
Docker-v3.pdf
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
 
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfOpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
 
Develop with linux containers and docker
Develop with linux containers and dockerDevelop with linux containers and docker
Develop with linux containers and docker
 
Docker Application to Scientific Computing
Docker Application to Scientific ComputingDocker Application to Scientific Computing
Docker Application to Scientific Computing
 
Accelerate your development with Docker
Accelerate your development with DockerAccelerate your development with Docker
Accelerate your development with Docker
 
Accelerate your software development with Docker
Accelerate your software development with DockerAccelerate your software development with Docker
Accelerate your software development with Docker
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and Docker
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
Build Your Own PaaS, Just like Red Hat's OpenShift from LinuxCon 2013 New Orl...
 
Oscon 2017: Build your own container-based system with the Moby project
Oscon 2017: Build your own container-based system with the Moby projectOscon 2017: Build your own container-based system with the Moby project
Oscon 2017: Build your own container-based system with the Moby project
 
Evolution of Linux Containerization
Evolution of Linux Containerization Evolution of Linux Containerization
Evolution of Linux Containerization
 
Evoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationEvoluation of Linux Container Virtualization
Evoluation of Linux Container Virtualization
 
Dev opsec dockerimage_patch_n_lifecyclemanagement_
Dev opsec dockerimage_patch_n_lifecyclemanagement_Dev opsec dockerimage_patch_n_lifecyclemanagement_
Dev opsec dockerimage_patch_n_lifecyclemanagement_
 
Linux containers and docker
Linux containers and dockerLinux containers and docker
Linux containers and docker
 
Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7Linux Container Technology inside Docker with RHEL7
Linux Container Technology inside Docker with RHEL7
 
Containers - Portable, repeatable user-oriented application delivery. Build, ...
Containers - Portable, repeatable user-oriented application delivery. Build, ...Containers - Portable, repeatable user-oriented application delivery. Build, ...
Containers - Portable, repeatable user-oriented application delivery. Build, ...
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetes
 
Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017
 
Veer's Container Security
Veer's Container SecurityVeer's Container Security
Veer's Container Security
 

Más de Filipe Miranda

IBM Think 2020 Openshift on IBM Z and LinuxONE
IBM Think 2020 Openshift on IBM Z and LinuxONEIBM Think 2020 Openshift on IBM Z and LinuxONE
IBM Think 2020 Openshift on IBM Z and LinuxONEFilipe Miranda
 
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...Filipe Miranda
 
Red Hat for IBM Power Systems (System p) Update v6
Red Hat for IBM Power Systems (System p) Update v6Red Hat for IBM Power Systems (System p) Update v6
Red Hat for IBM Power Systems (System p) Update v6Filipe Miranda
 
Sine nomine HAO for RHEL on IBM System z
Sine nomine HAO for RHEL on IBM System zSine nomine HAO for RHEL on IBM System z
Sine nomine HAO for RHEL on IBM System zFilipe Miranda
 
Oracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
Oracle 11gr2 on_rhel6_0 - Document from Red Hat IncOracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
Oracle 11gr2 on_rhel6_0 - Document from Red Hat IncFilipe Miranda
 
Red hat Enterprise Linux 6.4 for IBM System z Technical Highlights
Red hat Enterprise Linux 6.4 for IBM System z Technical HighlightsRed hat Enterprise Linux 6.4 for IBM System z Technical Highlights
Red hat Enterprise Linux 6.4 for IBM System z Technical HighlightsFilipe Miranda
 
IBM/Red Hat RoadShow London - High Availability for zLinux
IBM/Red Hat RoadShow London - High Availability for zLinuxIBM/Red Hat RoadShow London - High Availability for zLinux
IBM/Red Hat RoadShow London - High Availability for zLinuxFilipe Miranda
 
IBM Linux on System z Executive Advisory Customer Council Jersey City 2012
IBM Linux on System z Executive Advisory Customer Council Jersey City 2012 IBM Linux on System z Executive Advisory Customer Council Jersey City 2012
IBM Linux on System z Executive Advisory Customer Council Jersey City 2012 Filipe Miranda
 
Red Hat IBM ISV System z nov15th 2012
Red Hat IBM ISV System z nov15th 2012Red Hat IBM ISV System z nov15th 2012
Red Hat IBM ISV System z nov15th 2012Filipe Miranda
 

Más de Filipe Miranda (9)

IBM Think 2020 Openshift on IBM Z and LinuxONE
IBM Think 2020 Openshift on IBM Z and LinuxONEIBM Think 2020 Openshift on IBM Z and LinuxONE
IBM Think 2020 Openshift on IBM Z and LinuxONE
 
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
New Generation of IBM Power Systems Delivering value with Red Hat Enterprise ...
 
Red Hat for IBM Power Systems (System p) Update v6
Red Hat for IBM Power Systems (System p) Update v6Red Hat for IBM Power Systems (System p) Update v6
Red Hat for IBM Power Systems (System p) Update v6
 
Sine nomine HAO for RHEL on IBM System z
Sine nomine HAO for RHEL on IBM System zSine nomine HAO for RHEL on IBM System z
Sine nomine HAO for RHEL on IBM System z
 
Oracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
Oracle 11gr2 on_rhel6_0 - Document from Red Hat IncOracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
Oracle 11gr2 on_rhel6_0 - Document from Red Hat Inc
 
Red hat Enterprise Linux 6.4 for IBM System z Technical Highlights
Red hat Enterprise Linux 6.4 for IBM System z Technical HighlightsRed hat Enterprise Linux 6.4 for IBM System z Technical Highlights
Red hat Enterprise Linux 6.4 for IBM System z Technical Highlights
 
IBM/Red Hat RoadShow London - High Availability for zLinux
IBM/Red Hat RoadShow London - High Availability for zLinuxIBM/Red Hat RoadShow London - High Availability for zLinux
IBM/Red Hat RoadShow London - High Availability for zLinux
 
IBM Linux on System z Executive Advisory Customer Council Jersey City 2012
IBM Linux on System z Executive Advisory Customer Council Jersey City 2012 IBM Linux on System z Executive Advisory Customer Council Jersey City 2012
IBM Linux on System z Executive Advisory Customer Council Jersey City 2012
 
Red Hat IBM ISV System z nov15th 2012
Red Hat IBM ISV System z nov15th 2012Red Hat IBM ISV System z nov15th 2012
Red Hat IBM ISV System z nov15th 2012
 

Último

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 

Último (20)

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 

Linux Containers and Docker SHARE.ORG Seattle 2015

  • 1. Insert Custom Session QR if Desired. Filipe Miranda <fmiranda@redhat.com> Global Lead for Red Hat Products on IBM z Systems and Power Systems Red Hat Inc. Red Hat Enterprise Linux for IBM z Systems Linux Containers and Docker Session# 16443
  • 2. Red Hat, Inc. in a Nutshell - Red Hat and the Open Source Community Linux Containers - Introduction to Linux Containers Docker (Image Container) - Demo of Docker on RHEL for z Systems Openshift (PaaS Cloud) - A glimpse of what LCX/Docker technologies can do - What if we had OpenShift for z Systems? Session Topics © Copyright Red Hat, Inc. 2015
  • 3. Red Hat in a Nutshell © Copyright Red Hat, Inc. 2015
  • 4. Red Hat bringing OpenSource technologies to Enterprises © Copyright Red Hat, Inc. 2015
  • 6. Linux Containers Application Containers (same kernel and /usr as the host system) What is Linux Containers? LinuX Containers (LXC) is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host (LXC host). LXC does not provide a virtual machine, but rather provides a virtual environment that has its own CPU, memory, block I/O, network etc. Linux container feature allows you to carve out containers as lightweight application sandboxes. All host containers launched are identical – each runs the same user space as the host system, so all applications running in host containers are based on the host user space and run time. © Copyright Red Hat, Inc. 2015
  • 7. Linux Containers http://www.linuxjournal.com/content/containers—not-virtual-machines—are-future-cloud The advantage of using Linux Containers: Enables multiple running instances of an operating system or application on a single host, without inducing overhead on CPU and memory. Safely and securely run multiple applications on a single system without the risk of them interfering with each other. If security of one container has been compromised, the other containers are unaffected. Containers can be useful to quickly set up a “sandbox” environment, e.g. to test a new version of a Linux distribution or to simulate a “clean” environment for testing/QA purposes. © Copyright Red Hat, Inc. 2015
  • 8. Linux Containers building blocks Linux Containers are built using the following RHEL technologies: •Resource Management - Control groups (CGroups) •Filesystem Separation – Device mapperThin Provisioning •Isolation - Namespaces •Security - SELinux •Tooling – Libvirt-lxc and virt-sandbox-service Linux Containers © Copyright Red Hat, Inc. 2015
  • 9. Red Hat Enterprise Linux - Container Architecture Linux Containers © Copyright Red Hat, Inc. 2015
  • 10. Resource Management with Cgroups Linux Containers © Copyright Red Hat, Inc. 2015
  • 11. Red Hat Enterprise Linux - Container Architecture Linux Containers The kernel provides process isolation by creating separate namespaces for containers. Namespaces enable creating an abstraction of a particular global system resource and make it appear as a separated instance to processes within a namespace. Consequently, several containers can use the same resource simultaneously without creating a conflict. © Copyright Red Hat, Inc. 2015
  • 12. • Mount : mounting/unmounting filesystems Isolates the set of file system mount points seen by a group of processes so that processes in different mount namespaces can have different views of the file system hierarchy. • UTS : hostname, domainname Isolates two system identifiers – nodename and domainname.This allows each container to have its own hostname and NIS domain name, which is useful for initialization and configuration scripts based on these names • IPC : SysV message queues, shared memory segments Isolates certain interprocess communication (IPC) resources, such as System V IPC objects and POSIX message queues.This means that two containers can create shared memory segments and semaphores with the same name, but are not able to interact with other containers memory segments or shared memory. • Network: IPv4/IPv6 stacks, routing, firewall Provides isolation of network controllers, system resources associated with networking, firewall and routing tables. • PID: Private /proc, multiple pid 1’s Allows processes in different containers to have the same PID, so each container can have its own init (PID1) process that manages various system initialization tasks as well as containers life cycle Mount, UTS, IPC, Network, PID are fully supported in RHEL 7.0 Namespaces Linux Containers © Copyright Red Hat, Inc. 2015
  • 13. Red Hat Enterprise Linux - Container Architecture Linux Containers © Copyright Red Hat, Inc. 2015
  • 14. Red Hat Enterprise Linux - Container Architecture Linux Containers © Copyright Red Hat, Inc. 2015
  • 15. Red Hat Enterprise Linux - Container Architecture Linux Containers © Copyright Red Hat, Inc. 2015
  • 16. Red Hat Enterprise Linux - Container Architecture Linux Containers © Copyright Red Hat, Inc. 2015
  • 17. Host based Application Container Shared RHEL host based application container •Generic application containers •Run any command / package supported on the host system •Systemd application containers •Scale – launch 100s of containers using systemd •/usr in container same as the host OS Linux Containers https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Resource_Management_and_Linux_Containers_Guide/chap-Using_virsh.html © Copyright Red Hat, Inc. 2015
  • 18. Docker is a technology behind image-based containers It is a tool and a format designed for shipping applications as self-contained units Docker builds on the core capabilities of Linux containers, such as cgroups, namespaces and SELinux and also depends to certain extent on the underlying operating system, namely on device mapper thin provisioning and on systemd for resource management. Docker : Image Based Containers Image Containers (same kernel different /usr and package set) Application Containers (same kernel and /usr as the host system) © Copyright Red Hat, Inc. 2015
  • 19. •Red Hat doing heavy lifting in Fedora to ensure Docker runs on a Red Hat based container stack •Device mapper thin provisioning •Replaces AUFS dependency in Docker •Libvirt-lxc sandbox •Replaces lxc-tools dependency in Docker •SELinux •Links: partnership and ongoing work •http://tinyurl.com/RedHatDockerPR •http://blog.docker.io/2013/09/red-hat-and-docker-collaborate/ Docker and Red Hat © Copyright Red Hat, Inc. 2015
  • 20. •Recently as a result of the collaboration between IBM and the open source community, Docker is finally running on s390x systems (as well as PPC64) •Docker was originally developed in Golang (only available to x86 systems) •IBM and the open source community developed go-gcc (Docker have been ported to go-gcc) •Docker can now run on Linux on IBM z Systems (and IBM Power Systems) Docker on Linux for IBM z Systems © Copyright Red Hat, Inc. 2015
  • 21. Steps by Step: Testing environment, Red Hat Enterprise Linux 7 running as a z/VM guest OS 1) Copy the Docker binary (IBM) to /usr/local/bin 2) Start Docker deamon: [root@rhel7 ~]# docker -d INFO[0000] +job serveapi(unix:///var/run/docker.sock)    INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)  INFO[0006] +job init_networkdriver()                     INFO[0008] -job init_networkdriver() = OK (0)            INFO[0009] Loading containers: start.       Demo of Docker running on RHEL for z Systems © Copyright Red Hat, Inc. 2015
  • 22. 4)To use as a test subject, I created a standard RHEL on z z/VM guest and I created an image out of it in a tarball file. # tar -cvf rhel6-s390.tar --exclude=/root/rhel6-s390.tar --exclude=/proc --exclude=/sys --one-file-system / 5 )from the test subject system, I copied it to the Docker system, using a simple scope command and then I started the process to import that system image into Docker. cat rhel6-s390.tar | docker import - rhel6-s390 8223b049356123458040c6167b5421c975054f31d4e72c3d8d7eadd8e439b9a1 © Copyright Red Hat, Inc. 2015
  • 23. 4) Check if the Docker image was imported correctly:  [root@rhel7 ~]# docker images REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE rhel6-s390          latest              8223b0493561        44 seconds ago      1.437 GB 5) Let’s now run a shell environment within the container we just imported into Docker: [root@rhel7 ~]# docker run -i -t rhel6-s390 bash [root@722f09e42426 /]#  6) Once you have access to the shell within the container, check the process isolation: [root@722f09e42426 /]# ps aux USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND root         1  0.0  0.1 100500  1844 ?        Ss   07:13   0:00 bash root        24  0.0  0.1 100204  1120 ?        R+   07:15   0:00 ps aux © Copyright Red Hat, Inc. 2015
  • 24. 7) From another terminal, if you issue the command docker ps, it will tell you what containers are running: [root@rhel7 ~]# docker ps CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES 0863965787ea        rhel6-s390:latest   "bash"              2 minutes ago       Up 2 minutes                            goofy_feynman        © Copyright Red Hat, Inc. 2015
  • 25. [root@08dfb98ac145 /]# rhn_register  8) Back to the original terminal, lets start a different application, for example © Copyright Red Hat, Inc. 2015
  • 26. [root@08dfb98ac145 /]# yum update Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. This system is receiving updates from RHN Classic or RHN Satellite. Setting up Update Process Resolving Dependencies Dependencies Resolved . . . Transaction Summary ============================================================================ Install      14 Package(s) Upgrade     322 Package(s) Total download size: 249 M Is this ok [y/N]: n 9) Let’s try yum update to check if the registration worked © Copyright Red Hat, Inc. 2015
  • 27. [root@rhel7 ~]# docker commit 722f09e42426 07d308404e3edb04a580f0fce6d89887b717fd9e70ef1424a4be01412b5994fb 11)To identify the new image create a dog tag for that: [root@rhel7 ~]# docker tag 07d308404e3edb04a580f0fce6d89887b717fd9e70ef1424a4be01412b5994fb rhel6-s390-repo 12) Check the Docker images [root@rhel7 ~]# docker images REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE rhel6-s390          latest              8223b0493561        2 hours ago        1.437 GB rhel6-s390-repo     latest              17ec773d1bcd         1 hours ago        1.437 GB 10)To keep the modified container, we can issue a commit command thus creating another container image that will only have the modified files (in our case virtually no extra space): © Copyright Red Hat, Inc. 2015
  • 28. Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015 OpenShift is Red Hat's Platform-as-a-Service (PaaS) that allows developers to quickly develop, host, and scale applications in a cloud environment.With OpenShift you have choice of offerings, including online, on premise, and open source project options. Red Hat Openshift is currently only available to x86 systems
  • 29. Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015
  • 30. Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015
  • 31. Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015
  • 32. Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015
  • 33. Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015
  • 34. Get StartedToday for Free • Deploy Apps to the OpenShift OnLine Developer Preview • Request an Evaluation of OpenShift Enterprise • Join the OpenShift Origin Open Source Project community http://openshift.redhat.com Openshift - PaaS (private/public cloud) © Copyright Red Hat, Inc. 2015
  • 35. Filipe Miranda <fmiranda@redhat.com> Global Lead for Red Hat Products on IBM z Systems and Power Systems Red Hat Inc.