Docker By Example
Docker is really cool, and certainly a technology worth knowing. To follow along with the tutorials below, copy the code from https://github.com/rschuetzler/docker-by-example/.
Docker by Example: Getting started
Why Docker? Containers are a useful tool in deploying and developing applications. They’re like mini virtual machines that can each run an individual application. In these tutorials, we’ll walk through what Docker is and how to work with it. Installing Docker You can download Docker from https://docs.docker.com/
Docker by Example: A simple container
With containers you can package up code and your programming runtime in an easy-to-share container image.
Docker by Example: Web app containers
Containers can run quick scripts, and they can also run long-running processes like web servers.
Docker by Example: Cleaning up
Docker likes to hold onto images and containers even after you’ve stopped them. This covers some Docker commands to clean up after yourself.
Docker by Example: Persisting data with Volumes
Bind mounts allow you to share folders on your computer with the container to make development a little bit easier.
Docker by Example: Named Volumes
Named volumes allow you to store container information (like database records) on your computer in a Docker-managed space.
Docker by Example: Docker Compose
Docker Compose makes it easy to run multiple containers together with a single command. You can even use it to run a single container, putting configuration settings in a docker-compose.yml file.
Docker by Example: Container Registries
Container registries like Docker Hub allow you to download containers and share your own containers with others. Push images to the registry to make them available.