Docker is an open platform for building, shipping and running distributed applications.
docker.io
VM
Docker
http://docs.docker.com/installation
http://docs.docker.com/installation
Debian
Fedora
Ubuntu
from Docker Hub
Pulls per Day
Pulls per Second
Repositories on Docker Hub
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.
[Definition of docker images]
[Definition of docker containers]
App
Database
link
App
link
Storage
link
Storage
link
link
App
Database
link
App
link
Storage
link
Storage
link
link
Docker Host
Docker Host
Docker Host
Docker Host
Docker Host
Orchestration is a broad term that refers to the container scheduling, cluster management, and possibly the provision of additional hosts.
Compose is a tool for defining and running multi-container Docker applications.
Define your app’s environment with a Dockerfile so it can be reproduced anywhere.
Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment.
Lastly, run docker-compose up and Compose will start and run your entire app.
version: '2'
services:
db:
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
links:
- db
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress
Email: gilson.filho@basis.com.br
me@gilsondev.in
Skype: gilson.filho.basis
Questions?
Forked on: http://slides.com/baptwaels/docker