Module 7 - Docker
References
- Docker overview
- Get Docker
- Get started
- Get started - Official Docker Video Tutorial
- Docker documentation
Timeline
Day 1
- Download and installation
- The Docker Dashboard
- What is a container?
- Sample application (Node.js app)
- Building app's container image
- Starting an app container
Part 3: Updating the application
- Source code update
- Removing/Starting a container
Part 4: Sharing the application (Optional?)
- Creating a repo
- Pushing the image
- Running the image on a new instance
- Container's filesystem
- Container volumes
- Persisting db data
- Starting a dev-mode container
- Container networking
- Starting DB container image (MySQL)
- Connecting to DB container image
- Connecting app to DB container image
- Installing Docker Composev
- Creating Docker Compose file
- Defining app and DB services
- Running the application stack
Part 9: Image-building best practices (Optional)
- Security scanning
- Image layering
- Layer caching
- Multi-stage builds
Possible troubleshooting (M1 related)
Using Bind Mounts: error Couldn't find a package.json file in "/app" #76
docker build command fails on yarn install step with error "gyp ERR! find Python" #124
Useful tutorials/links
Quickstart: Compose and Django
Postgres up and running in less than 3 minutes with docker-compose