How to recover an orphaned Docker volume for a data container

Posted by Matt Bryson on 18-Jan-2016 20:58:05

So, last week I was writing a post about cleaning up after docker, and I got a bit carried away and ended up deleting a data container. The container was no longer running, but it's docker volume was still in use by other running containers.

Check out these articles for more info on Images and Containers, Volumes and Data Containers and why you would use them.

Thankfully, I didn't use the -v flag (which removes the containers volumes as well - although volumes in use wont get removed), so I still had all the data, I just had lost the container that created it.

The problem is, docker references the volume via the container when mounting it as a shared volume. As I had deleted the container, I could no longer reference the volume.

Thankfully there is a very simple solution to get the volume mapped back to the data container.

Read More

Topics: Deployment, Docker, Technology

Docker using up all of your disk space? Don't forget to clean up after docker...

Posted by Matt Bryson on 13-Jan-2016 12:54:10

We have some ansible scripts that deploy docker containers on to various environments. All has been going fine until this week, when we fell foul of the untidy teenager that is docker!

Our deployment was failing as the box had run out of disk space. Turns out you need to tidy up after docker...

Read More

Topics: Deployment, Docker, Technology

boot2docker error : index.docker.io/v1/repositories/ dial tcp: lookup index.docker.io no answer from server

Posted by Matt Bryson on 17-Mar-2015 11:14:00

Had this little annoying error with docker the other day.

Read More

Topics: Deployment, Docker