Are you a developer? You have heard about Docker but don't know how to use it or why you would want to? Want to get the basic concepts down and get it installed and running? This is the session for you.
8. ‣ Why you should contain
everything in containers
that contain things
‣ Everything about Docker
‣ Euclid's proof of the
infinitude of primes
What we won’t be covering
9. ‣ Learn about Docker from a developers
perspective
‣ Learn how to get started with Docker
‣ Learn the basic Docker commands you will use
every day as a developer
‣ Get Docker installed and running on your machine
What we will be covering
10. ‣ Husband
‣ Dad
‣ Coach
‣ Youth Leader
‣ Co-Owner of Computer Know How
‣ Member of Team ColdBox
‣ Open CFML Foundation Board
The Obligatory Who Am I?
11. ‣ Tried Docker
‣ Deployed Docker
‣ Installed Docker locally
‣ Written a Dockerfile
‣ An image on Docker Hub
Little about you
33. 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.
34. 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
35. 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.
36. 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