Automated Deploy Docker Containers on CoreOS
Docker Meetup Beijing 7/13/2014
Agenda
- CoreOS features.
- Intro to main components of CoreOS.
- Demonstration for CoreOS cluster
- management on my laptop.
- Deploy Docker images on CoreOS.
- Docker Meetup Beijing 7/13/2014
CoreOS Features
- LXC and Application container.
- No package manager.
- Docker containers
- Painless updating.
- Clustered by default .
- Distributed systems tools.
- Service discovery .
Virtualization
- Hypervisor
- Container
- Application
- Container
- lightweight
Hypervisor
- Hardware emulation (many virtual hardwares ).
- Host machine / Guest machine, can run different OSs.
- Lower density, performance, scalability, security.
Container
- Real machine, host provides Kernel,
- one kernel many userspace instances.
- Filesystem, network interface, etc.
- High density, dynamic resource allocation.
- Native performance, no overhead (almost).
Application Container
- Starts from application (not /sbin/init as Container).
- Filesystem: read-only, shared, slave, private.
- User data, socket fd etc.
Painless updating
- CoreOS is currently booted off partition A.
- An update is installed onto partition B.
- Machine is rebooted onto the B partition.