Setup
If you plan on following along you should have installed Docker and it should be running on your computer. Make sure you’ve created a free account on Docker and signed into it with docker login
from your command line.
A quick call to docker run alpine echo 'hi there'
should verify that the engine is up and running by downloading the alpine linux
container and running a simple echo command.
On Windows, you will need to run Linux containers for the seminar, and this can be set by going into your docker control panel and selecting Linux images. Note that your existing images will be purged and Docker will restart.
Exercises
Download the exercises from this link and expand them somewhere. Open that directory with your favorite text editor.
Useful Resources
Docker Guides
- Best practices for writing Dockerfiles
- Controlling shutdown/startup order in Compose
- Environment Variables Guide
- Compose documentation
Articles
- Great article on filtering and grepping Docker containers, images and volumes
- Outdated but a great read on how Docker works
- Survey of Docker monitoring tools
- Advanced multi-stage build patterns
- Troubleshooting the Docker build process
- Dockerizing an Angular app
- Docker ARG, ENV and .env – a Complete Guide
- How To Remove Docker Images, Containers, and Volumes
- The difference between docker-compose and docker-stack
- Use Compose in production
- Article on the difference between CMD and ENTRYPOINT and why each are used
- Window users: toggle HyperV on/off so you can do work in Docker
About Ken Rimple:
Ken almost started coding at an early age when he used a battery, two wires and an old flashcube to make a flashlight (those in the other room saw a blinding flash, then heard screams of agony). Dodging this early accident, he never stops learning how to break things. He is Chariot’s Training Services director, and writes and teaches courses focusing on Single Page JavaScript application platforms such as React and Angular. He also teaches/works with Spring, Java and Maven, among other technologies, has amassed 10 years of podcast episodes at the Chariot Solutions TechCast, writes tutorials, and speaks about JavaScript development at conferences. He is the co-author of Spring Roo in Action from Manning. He loves photography and music, plays guitar in a rock and roll band, and lives alone with four kids, a wife, two dogs and his tinnitus.