2. WHO AM I?
● Rafael Dutra
● SysAdmin and DevOps Enthusiast
● Security Information - UNISINOS 2008 - ?
● Linux user since 2005
● Docker user since 2015
● PHP (Laravel)/Shell/Ruby
4. AGENDA
● What’s Docker?
● Container vs Virtual Machine
● Why should I use Docker?
● Terminology
● Images and Layers
● Containers and Layers
● Dockerfile anatomy
5. WHAT'S DOCKER?
● Open Source technology
● Agility, accelerate software development and
deployment
● Portability, eliminate the "works on my machine"
● Container is not Virtual Machine
7. WHY SHOULD I USE DOCKER?
● Infrastructure as Code - IAC
● All application is an image
● Works on my machine, no more!
● Set up locally the same environment that you have in
production, or any other environment
● Tests, a lot of them
● Community
8. TERMINOLOGY
● Images = is our “how it was built” / what we want to
run it
● Containers = runs images in a dynamic way. By
dynamic I meant multiple containers can run the same
image doing different things.
● Volumes = where we want to store our data, could be
our physical directory or a docker volume
24. DOCKER BASICS
To pull (download) an specific image version
docker image pull ubuntu:17.10
25. DOCKER BASICS
Running our first web container
docker run --detach --publish 45000:80 nginx
● action that we want to do
● options to detach (run it in background) and publish ports
● port that we want to access in our machine
● port running in the container
● image we are using at this moment