Occasionally when working with a pre-built Docker Container image, it will become necessary for you to add an entry to the /etc/hosts file within the Docker container. Docker provides an easy way to add a host entry to a docker container. An example of when would become necessary is if you are installing Wordpress as a Docker container and then receiving the Wordpress loopback error when you login to the admin screen.
After writing the 25 Basic Docker Commands for Beginners article, it was only natural that I start exploring the functions of Docker Compose. While running container using a docker run command is an easy way to get your containers up and running, using a docker-compose.yml file will ensure that your environmental variables and other parameters are saved making it easy to redeploy your containers across Docker host machines.
I have been toying around with Docker for a few months now ever since I first bought a Raspberry Pi. It has been a great learning experience. Currently, I have over 20 self-hosted applications running in Docker. However, last week my power started to flicker and I began to wonder what would happen if my Raspberry Pi completely died?