Recovering data from Docker volumes

/ in dev, ops

After a fresh install of my operating system and after coping over my Docker backup, I discovered that there was a gigantic file called Docker.raw which stores all of the containers, images, and volumes somehow magically. In my case, it was a whopping 86+ GB! 😳 Sure storage is relatively cheap, but that’s just needlessly wasteful and this is my laptop so it’s a bit ridiculous. I believe now that this was a result of working with Docker from an old version and that this problem may have been solved, but at least regarding Docker for Mac, the raw file can not be shrunken while retaining the data. This means that if you wanted to keep all your Docker resources, you would first have to get any data out of your volumes that you want to keep before you can get rid of it.

While attempting to figure out how I was going to get the data out of my volumes. I was lurking around my Docker setup when I noticed that I had a lot of extra volumes. I didn’t know if the data inside was important or not and so I wanted to find out more about them in order to see if the data needed to be properly backed up. Upon searching the web, I couldn’t really find much documentation around viewing volumes and getting data out of them for backing up and restoring between machine migrations. I’m going to share this in the hopes it helps someone else since I wasn’t able to find anything online when I looked.

Continue reading…

Taking Docker to the Next Level

/ in dev, ops

Last year I dove into Vagrant and Chef to setup developer environments. For a while now I’ve been trying to wrap my head around Docker and why people are raving about it in the devops world so I decided try it more.

Why Docker

Docker is a very powerful tool to spin up isolated “containers” which are similar to virtual machines except that they aren’t. They are built and ran as developers choose and every step inside a build file creates an image subset that can be used as a starting point in another image.

What does that mean? Well say you have 3 steps to setup a simple WordPress server.

Continue reading…

The Future of Hosting

/ in dev, hosting, ops

The web hosting industry is rapidly changing. In the early days you had traditional hosting, but now the web is seeing a shift towards scalable PaaS and managed web hosting.

Multiple software versions

With traditional hosting, you were stuck with whatever version the server was running by your provider. If they were running PHP 4 and you wanted to build a PHP 5 app, you were just out of luck.

With cloud offerings you can generally choose different version of the software whether thats PHP or MySQL instead of just a single version fits all.

Continue reading…