Chapter 2. Docker Installation
Docker installation is pretty smooth in most of the operating systems, and there are very few chances of things going wrong. Docker Engine installation is supported mostly on all the Linux, Cloud, Windows, and Mac OS X environments. If the Linux version is not supported, then Docker Engine can be installed using binaries. Docker binary installation is mostly oriented for hackers who want to try out Docker on a variety of OS. It usually involves checking runtime dependencies, kernel dependencies, and using Docker platform-specific binaries in order to move ahead with installation.
Docker Toolbox is an installer, which can be used to quickly install and set up a Docker environment on your Windows or Mac machine. Docker toolbox also installs:
- Docker client: It executes commands, such as build and run, and ship containers by communicating with the Docker daemon
- Docker Machine: It is a tool used to install Docker Engine on virtual hosts and manages them with the help of Docker Machine commands
- Docker Compose: It is a tool used to define and run multicontainer Docker applications
- Kitematic: The Docker GUI that runs on Mac OS X and Windows operating system
The installation for Docker with toolbox as well as on various supported OSes is quite straightforward, but nevertheless we have listed potential pitfalls and troubleshooting steps involved.
In this chapter, we explore how to install Docker on various Linux distributions, such as the following:
- Ubuntu
- Red Hat Linux
- CentOS
- CoreOS
- Fedora
- SUSE Linux
All of the above OSes can be deployed on the bare-metal machines, but we have used AWS to deploy in some of the cases, as it's an ideal situation for a production environment. Also, it'll be faster to get the environment up and running in AWS. We have explained the steps for the same in the respective sections in this chapter, which will help you to troubleshoot and speed up the deployment on AWS.