crash course

DOCKER

Javi Moreno

 

@ciberado @capside

life was easier against COBOL

¡Devels! ¡Sysops! ¡¡FIGHT!!

Docks? Ships? Mataphors?
Shoot me, please

Union File System & chroot

Images and Registries

Unix c-groups

Unix namespaces

Containers

Host & Docker agent

Docker machine

Docker client

Database

Links

FROM ubuntu:12.04

MAINTAINER Kimbro Staken version: 0.1

RUN apt-get update && apt-get install -y apache2 && \
         apt-get clean && rm -rf /var/lib/apt/lists/*

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2

EXPOSE 80

CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]

Image hierarchy

Command line tools dockerization

Developing with nodejs

spotify's maven plugin for docker

https://github.com/msanand/docker-workflow

nginx:
    build: ./nginx
    links:
        - node1:node1
    ports:
        - "80:80"
node1:
    build: ./node
    links:
        - redis
    ports:
        - "8080"
redis:
    image: redis
    ports:
        - "6379"

continuous integration

https://github.com/testcontainers/testcontainers-java

clusters

@ciberado @capside

Docker crash course

By Javier Moreno

Docker crash course

  • 828