Running WordPress Inside a Docker Container

We deploy the real environment, you take the scenario-based labs on us. Hands-on, from anywhere, at any time.

Time required: 2 Hours


Using many of the Docker commands we have learned, we install, star,t and verify a WordPress container on the underlying host system. As part of this, you will need to configure the underlying MySQL for use with the WordPress.



Using Docker commands, we will need to obtain and install a working WordPress image in a single container. We will need to configure the MySQL as part of the WordPress installation.


1. Install Docker and configure the service so that it is running.
2. Pull a MySQL instance from Docker Hub.
3. Instantiate a MySQL container from Docker hub. Check the MySQL documentation from the Docker Hub instance to be sure it is started with the necessary parameters.
4. Pull the latest WordPress Docker container from Docker Hub.
5. Instantiate a container from that image, called 'wordpress'; check the WordPress documentation from the Docker Hub instance to be sure it starts with the necessary parameters.
6. Verify the container is running using the appropriate Docker commands.
7. Note the IP address of the container using the appropriate Docker commands.
8. Install a web client on the underlying host system (lab server).
9. Connect to the WordPress instance and install WordPress to the start page.
10. Stop the container instance and verify it has stopped.
11. Delete the MySQL container completely from the host system.
12. List all stopped containers to verify it has been removed.

Share our Labs
Start Your Free Trial

We have the longest and most in depth courses about cloud and engineering topics on the web. All of our training content is included with every membership.