Posted on

Docker Volumes: An Introduction

Docker volume

Docker volumes are very useful when we need to persist data in Docker containers or share data between containers. Docker volumes are important because when a Docker container is destroyed, it’s entire file system is destroyed too. So if we want to keep this data in some way, it is necessary that we use Docker volumes. Docker volumes are attached to containers during a docker run command by using the -v flag When Docker Volumes…

Read more

Posted on

Understanding Docker Containers

Docker container

In a previous article, we talked about Docker images but we could only use a small section to talk about Docker containers. Now, let’s go deeper. Docker Containers A Docker container is created from a Docker image. If a Docker image is a recipe, think of the Docker container as the dish that is prepared A container image is a lightweight, stand-alone, executable package of a piece of software that includes everything needed to run…

Read more

Posted on

Moving a WordPress site into a Docker Container

docker-wordpress

WordPress is a very popular and flexible Content Management System (CMS). If you build websites, you are likely to have worked with (or had someone ask you to) WordPress. There are several tutorials about how to set up a new WordPress site with docker. Here is a very good one. However, no one really says how to move an existing WordPress site into a docker container. I have several servers on Digital Ocean, Linode and Vultr,…

Read more