Appendix A. Installing and using Docker

 

The techniques in this book sometimes require you to make files and clone repositories from GitHub. To avoid interference, we suggest you create a new empty folder for each technique when you need some working space.

Linux users have it relatively easy when it comes to installing and using Docker, though the fine details can vary significantly between different Linux distributions. Rather than enumerating the different possibilities here, we suggest you check the latest Docker documentation at https://docs.docker.com/installation/. The community edition (CE) of Docker is suitable for use with this book.

Although we assume that you’re using a Linux distribution (the containers you’ll be looking at are Linux-based, so this keeps things simple), many users interested in Docker work on either Windows- or macOS-based machines. For these users it’s worth pointing out that the techniques in this book will still work, as Docker for Linux is officially supported on those platforms. For those who don’t want to (or can’t) follow the instructions at the preceding link, you can use one of the following approaches to set up the Docker daemon.

The virtual machine approach

Docker client connected to an external Docker server

Native Docker client and virtual machine

Getting help