Setting up Docker and Docker Compose

Learn how to run Docker on your system.

There are two ways to go about setting up Docker: Docker Desktop and Docker Engine. These are explained below.

Docker Desktop

Docker Desktop is probably the simplest way to set up Docker on your system. It's interactive and available for various platforms, like macOS, Windows, and Linux. It can be installed simply by downloading the package from its official website and running it. Make sure to choose one that meets your system requirements.

Docker Engine

While Docker Desktop is appropriate for local systems, we probably need a more automated way to set up Docker on an actual production system. That's where Docker Engine comes into the picture. Docker's website does a pretty good job of describing the steps to do this. Please follow it to set up Docker Engine according to your system requirements.

Docker Compose

Compose is a tool for defining and running multicontainer Docker applications. It uses YAML files for configuration. It then takes a single command to create and start the services. Detailed instructions to install Docker Compose can be found on their official website.

Get hands-on with 1200+ tech skills courses.