containers - what are they and atomic

19
Containers Hosts and lxc, docker.. @RedHatNordics @sshaaf

Upload: syed-m-shaaf

Post on 15-Jul-2015

67 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Containers - What are they and Atomic

ContainersHosts and lxc, docker..

@RedHatNordics@sshaaf

Page 2: Containers - What are they and Atomic

Containment , always been ...

Zones

LXC

Page 3: Containers - What are they and Atomic

Namespaces

namespace wraps a particular global system resource in an abstraction that tells the processes within the namespace that they have their own isolated instance of the global resource

Page 4: Containers - What are they and Atomic

Namespaces

Mount - CLONE_NEWNS, Linux 2.4.19

IPC - CLONE_NEWIPC, Linux 2.6.19

PID - CLONE_NEWPID, Linux 2.6.24

UTS - CLONE_NEWUTS, Linux 2.6.19

Network - CLONE_NEWNET, started in Linux 2.6.24

User - CLONE_NEWUSER, started in Linux 2.6.23

Page 5: Containers - What are they and Atomic

Cgroups

Control Groups provide a mechanism for aggregating/partitioning sets oftasks, and all their future children, into hierarchical groups withspecialized behaviour.

Ref: Kernel.org

Page 6: Containers - What are they and Atomic

CgroupsSubsystems, hierarchies.

Parameters: Memory, disk, cpu ..

CPU Set

Mem

CPU

Top Set

Page 7: Containers - What are they and Atomic

I got containerized

Page 8: Containers - What are they and Atomic

Software packaging concept that typically includes an application and all of its runtime dependencies.● Easy to deploy and portable

across host systems● Isolates applications on a

host operating system. In RHEL,this is done through:● Control Groups (cgroups)● kernel namespaces● SELinux, sVirt

What is?

Page 9: Containers - What are they and Atomic

Loose 1 not all

...and compromised, there is far less exposure. Only the container process is lost – lose the process not the system.

Page 10: Containers - What are they and Atomic

Overview

Page 11: Containers - What are they and Atomic

Containers in RHEL

Page 12: Containers - What are they and Atomic

Image based containers

Page 13: Containers - What are they and Atomic

Virt and containers

Page 14: Containers - What are they and Atomic
Page 15: Containers - What are they and Atomic
Page 16: Containers - What are they and Atomic
Page 17: Containers - What are they and Atomic
Page 18: Containers - What are they and Atomic
Page 19: Containers - What are they and Atomic