Download - Wordcamp Bratislava 2017 - Docker! Why?
Why use it?
● Virtual environment● Independence● Clean host machine● Test environment for experiments● Build for project (“works on my machine problem”)
Test environment
● docker pull mysql
● docker pull wordpress:<tag>
○ <4.7 | 4.7.4-fpm | 4.7.4-php7.1-apache | ?latest?>
● docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=password mysql
● docker run --link mysql:mysql -p 9000:80 wordpress
Build for project - pros & cons
● fast start
● easy to use
● consistent environment for
○ team
○ project
● no need Vagrant
● build for Linux
● new tool
Build for project
Docker compose
- is a tool for defining and running multi-container Docker applications
Run in production
● end of classic hosting services
● Amazon EC2 Container Service● Google Container Service● Digital Ocean● Microsoft Azure● ...
Recap - why use Docker?
● consistent environment
● runs different project on one server (less costs)
● exotic setup for projects
BTW, we’are using Docker on daily basis
● Catch me to talk about Docker or how to switch your project to Docker
● Come to one of our Docker trainings
rekurzia.sk # docker