16
LESSON LEANRED ON DOCKER 1.12 AND SWARM MODE Nguyn Văn Thường (Sysadmin @ Vega Corp)

ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode

Embed Size (px)

Citation preview

LESSON LEANRED ON DOCKER 1.12 AND SWARM MODE Nguyễn Văn Thường (Sysadmin @ Vega Corp)

AGENDA

● What’s new in Docker 1.12 ?

● Why Swarm mode ?

● Lesson learned

● Q&A

WHAT’S NEW IN DOCKER 1.12

WHY SWARM MODE ?

The best way to orchestrate Docker is Docker

LESSON LEARNED

● Devicemapper

● Private Registry

● Volume vs Bind

● Resources

● Logging

● Load balancing

● Deployment

● Monitoring

● Drawback

DEVICEMAPPER

● Loop-lvm vs direct lvm

PRIVATE REGISTRY

● Secure

● Control

● Speed

● Need backup

● Need option: --with-registry-auth (pre-login)

Resources

Memory and CPU

LOGGING

● Stdout or logging plugins

● Log rotation

LOAD BALANCING

Hardware (F5)

Software (Nginx + consul + consul template)

DEPLOYMENT

● Gitlab

● Jenkins

● Private registry

● Ansible

MONITORING

● Zabbix to monitor container host

● Prometheus to monitor container itself

DRAWBACK OF SWARM MODE

● ENV file does not support

● --live-restore incompatible

● Lack of documents about mount, service (VIP or DNSRR)

● . . .

● Q&A