docker-krk-14-02



docker-krk-14-02

0 0


docker-krk-14-02

Kraków DevOps Meetup #3 - Docker

On Github zaiste / docker-krk-14-02

Communication between Docker containers

Kraków DevOps Meetup #3 - Docker

February 26, 2014 @zaiste

Programmer

Started Nukomeet / Organize tech events

Context

open-source abstraction that automates the deployment of any application as a lightweight, portable, self-sufficient container that will run everywhere

Container

Single Responsibility: Small & Single Process

Approach

Throw-Away

Ephemeral nature

Persistence needs

Data-Only Containers

Volume

Outside Container FS

Features

Share & Persist Data

Example 1

Static Website Generation Pipeline

 docker run -name nukomeet-com-data \
	-v /srv/www/nukomeet.com:/data ubuntu true
		  
 docker run -volumes-from nukomeet-com-data 
	git-clone https://github.com/nukomeet/nukomeet.com.git
		  
 docker run -volumes-from nukomeet-com-data nanoc-compile
		  

Simple to share state

Queue analogy

Easy to upgrade

Process decoupled from data

Linking Containers

Service discovery

Look up & Hook in

Parent / Child relation

Access to selected information

Example 2

Web application

 docker run -d -name mongodb zaiste/mongodb
		  
 docker run -t -i -link mongodb:db -name webapp ubuntu bash
		  

More

Website / GitHub / Google Group / IRC #docker

Q? / Thank you