![]() The first thing we’re going to do is create the directory that will house the data for a WordPress container. I’ll be demonstrating on Ubuntu Server 20.04, but it doesn’t matter the platform, so long as Docker is working properly. To make this work, you’ll need a machine with a running instance of the Docker engine. SEE: Kubernetes: A cheat sheet (free PDF) (TechRepublic)īut what happens when you do eventually restart that Docker container? Will the volume housing the data still be there when the container comes back up? Let’s walk through the steps for creating and using a volume such that it will always be there for your Docker container deployment. Not only do you want to give that container enough storage space to house all of the data it will require (especially as it scales), you want to make sure that data remains in play, even after the container is stopped or restarted. Say, for example, you’re deploying a WordPress instance via a Docker container. The primary reason is to ensure persistent storage. There are so many reasons you want to use volumes for your container deployments. ![]() Tech Takes Diverse Approaches to Sustainability Including Net Zero Carbon by 2030 Impact of Recent Australian Data Centre Outages on Businesses and Risk Mitigation Image: o_m/Shutterstock More about data centers Looking to add persistent storage for your Docker container deployments? Jack Wallen shows you how, by way of a WordPress example. How to automount volumes for Docker containers
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |