Book Image

Docker Bootcamp

By : Russ McKendrick, Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh
Book Image

Docker Bootcamp

By: Russ McKendrick, Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh

Overview of this book

<p>Docker allows you to create a robust and resilient environment to generate portable, composable, scalable, and stable application containers.</p> <p>The book starts by installing the core Docker Engine on MacOS, Windows 10 and Linux desktops. We will then define multi-container applications and understand the advantages of using containers locally. Once this is done, we will deploy containers on a single Docker host which is publicly accessible. Furthermore, we will learn how to deploy and configure a Docker Swarm cluster and explore networking and storage third-party plugins to extend the core Docker functionality. Towards the end, the book will demonstrate how to monitor and troubleshoot day-to-day problems in addition to various real world examples of container deployments.</p>
Table of Contents (15 chapters)

Running a WordPress container


Almost everyone at some point will have installed, used, or read about WordPress, so for our next example, we will be using the official WordPress container from the Docker Hub. You can find details on the container at https://hub.docker.com/_/wordpress/.

Note

WordPress is web software that you can use to create a beautiful website, blog, or app. We like to say that WordPress is both free and priceless at the same time. For more information, check out https://wordpress.org/.

To launch WordPress, you will need to download and run two containers, the first of which is the database container, for this I recommend using the official MySQL container which you can find at https://hub.docker.com/_/mysql/.

To download the latest MySQL container image run the following command on your Mac, Windows or Linux machine:

docker image pull mysql

Now that you have the pulled a copy of the image you can launch MySQL by running the following command:

docker container run -d \
   ...