Linux containers and Docker have been all the rage in sysOps for quite some time now. Come to this session to learn about how you can or if you should be using them, and to learn about container technologies, how thy differ from VMs and if they truly are the future. Take a look at Docker basics and get an understanding of how it can be used as part of your workflow, not just for development, but for production deployments as well. We will also bust some Myths surrounding container technologies and Docker.
Can you contain the future - Docker, Container Technologies, The Future, and You
1. CAN YOU CONTAIN THE FUTURE: Docker,
Container Technologies, The Future, And You
BY: CURT GRATZ
2.
3.
4.
5.
6.
7.
8.
9. ‣ Getting started with
Docker
‣ Why you should contain
everything in containers
that contain things
‣ Everything about Docker
‣ The Batman Equation
What we won’t be covering
10. ‣ Learn about containers and how they differ from Vms
‣ Learn the pros and cons of using containers
‣ A little about Docker and how to integrate it into your
workflow
‣ Learn how you can use Docker for easy deployments
‣ Bust some Myths about container technologies and
Docker.
What we will be covering
11. ‣ Husband
‣ Dad
‣ Coach
‣ Youth Leader
‣ Co-Owner of Computer Know How
‣ Member of Team ColdBox
‣ Lover of Open Source
The Obligatory Who Am I?
41. Commands for images
‣ $ docker images # shows all images.
‣ $ docker import # creates an image from a tarball.
‣ $ docker build # creates image from Dockerfile.
‣ $ docker commit # creates image from a container.
‣ $ docker rmi # removes an image.
‣ $ docker history # list changes of an image.
42. Commands for Dockerfile
‣ FROM - The image the new image will be based on.
‣ COPY - Copy a file or dir into the image
‣ ADD - Like copy, but can be a URL or unpack a tar
‣ RUN - Ran a command inside the container
‣ ONBUILD - Run commands when building
‣ CMD - Default command to run
‣ ENV - Set a environment variable
‣ EXPOSE - expose a port
‣ VOLUME - Specify that a directory should be stored outside the union file
system
43. Commands for containers
‣ $ docker create # creates a container but does not start it.
‣ $ docker run # creates and starts a container.
‣ $ docker stop # stops it.
‣ $ docker start # will start it again.
‣ $ docker restart # restarts a container.
‣ $ docker rm # deletes a container.
‣ $ docker kill # sends a SIGKILL to a container.
‣ $ docker exec # executes a command in a running container.
44. Commands for inspecting
‣ $ docker ps # shows running containers.
‣ $ docker inspect # info on a container (incl. IP address).
‣ $ docker logs # gets logs from container.
‣ $ docker events # gets events from container.
‣ $ docker port # shows public facing port of container.
‣ $ docker top # shows running processes in container.
‣ $ docker diff # shows changed files in container's FS.
‣ $ docker stats # shows metrics, memory, cpu, filsystem