DEV Community

Antoine
Antoine

Posted on • Edited on

How to install WordPress with Docker

Lately, for a technical interview, I have been asked the following task: install WordPress with Docker and explain how you do it.

Before jumping on how I have done it, let's clarify what is Docker and its composition.

What is Docker?

Docker is a platform that allows containerisation of software packages (e.g. build, ship, run the software anywhere) based on Linux kernel (but Windows and MacOS are also supported).

What does it contain?

Docker is composed of:

  • a client
  • a host
  • a registry

Docker composition

The client is Docker CLI (Command Line Interface), this app runs in the terminal.
The host runs in the background, it manages the containers and images.
The registry is where the images are pushed to.

WordPress

I don't think I need to introduce WordPress, but if you don't know it, you can check the following link.

However, I need to spend more time explaining how to install WordPress with Docker.

There are two methods available to install and set up WordPress on Docker:

Top comments (0)