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.
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
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.
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: