This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
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)