This is a repository of simple Docker examples.
Videos accompanying this code repo can be found in this YouTube playlist.
Any machine with a working docker installation Should suffice; however individual examples may have other requirements.
Most of these examples have been tested out on Ubuntu 16.04 + Docker. Some have additionally been tested on Windows 10 + Docker Toolbox.
The examples are arranged below in increasing order of difficulty.
This Simple example is from the Docker Getting Started Guide.
This example uses Ubuntu + the fortunes
package.
Here we will build an Apache Web Server using Ubuntu + Apache.
This example shows how to build the same Apache webserver using supervisor
. Additionally we will launch an SSH server (so that you can ssh to this webserver).
These examples illustrate persisting data across container restarts.
This example creates a Jenkins Docker container and demonstrates several core concepts.
This folder contains examples on Docker Compose.
This example creates an EFK stack (Elastic,Fluentd,Kibana) using Docker Compose.
This folder contains several examples on Docker Machine.
This folder contains many examples on Docker Swarm.
A step-by-step demonstration of applying Test-Driven Development to Dockerfile development.