docker security

9
Docker: The Linux Container Engine Security Aspects

Upload: ian-richardson

Post on 15-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

Is Docker ready for prime time?

TRANSCRIPT

Page 1: Docker Security

Docker: The Linux Container EngineSecurity Aspects

Page 2: Docker Security

What is Docker?

Page 3: Docker Security

Docker Internals

Page 4: Docker Security

Docker Security

● Growing pains● Linux Kernel● Linux Containers● Trusted containers

Page 5: Docker Security

Linux Kernel Namespaces

● Isolates processes into namespaces:o Process ID: Isolates process IDs and gives own

process numbering that is only seen by parento Network: Isolates network devices, stacks,

and ports. Own routing table, iptables chains and rules.

o Mount: Isolates mount points and translates paths to root rather than relative.

o UNIX Time-Sharing: Allows for processes to have different hostname.

Page 6: Docker Security

Linux Kernel Control Groups

● Monitors, isolates and limits resources● Separate controllers for each resource:

o Memory e.g. Limit RAM cachingo CPU e.g. Limit CPU timeo Block I/O e.g. Limit operations per second

Page 7: Docker Security

Security: AppArmor and Common Sense

● Use non-privileged containers● Use newer kernel, 3.14+, and update

often● Use a MAC System (AppArmor,

SELinux)● Remove unneeded risks, i.e. SUID

binaries

Page 8: Docker Security

Conclusions

● Docker is secure*o Depending on your setup, your needs and

your willingness to configure internals● Namespaces, Cgroups, AppArmour

* As secure as other options with easier setup

Page 9: Docker Security

Questions?