Technical requirements
For this chapter, we assume you have Docker installed on a Linux machine running Ubuntu 18.04 Bionic LTS or later, with sudo access. You can follow Chapter 3, Containerization with Docker, for more details on how to do that.
You will also need to clone the following GitHub repository for some exercises: https://github.com/PacktPublishing/Modern-DevOps-Practices-2e.
Run the following command to clone the repository into your home directory, and cd into the ch5 directory to access the required resources:
$ git clone https://github.com/PacktPublishing/Modern-DevOps-Practices-2e.git \ modern-devops $ cd modern-devops/ch5
As the repository contains files with placeholders, you must replace the <your_dockerhub_user> string with your actual Docker Hub user. Use the following commands to substitute the placeholders:
$ grep -rl '<your_dockerhub_user>' . | xargs sed -i -e \ 's/<your_dockerhub_user>/<your...