Container42 Stuff I find interesting

Twitter GitHub

Docker Quicktip #5: Backing up Volumes

Data in Docker volumes is generally super important. In fact if you are doing your containers correctly the stuff in the volumes is the only thing you need to worry about backing up as containers shouldn't be storing anything at all.

So how do you access the data in volumes?

read more

Docker Quicktip #4 - Remote volumes

This one builds off the idea of using data-only containers. Let's step into the unknown and add a second host into the mix.

What do you use when you need to share data with containers across hosts? The answer? Well... as you normally would... NFS (or insert your file share service of choice).

read more

Docker quicktip #3 - ONBUILD

Docker 0.8 came out today, with it a slew of fantastic enhancements. Today we'll be looking at one of them: ONBUILD.

read more

Docker Quicktip #2: exec it, please!

Often when creating a Docker container it is necessary to do a bit of setup before starting the main process you wanted. Sometimes this is just a one-time setup for the first time the container starts (setting up database users, importing data, etc), other times it's setting up the environment to get your process going (as many init.d scripts also do). In any case some script is needed to run before running the main application that the container was created for.

read more

Docker Quicktip #1: Entrypoint

The first tip is aptly named "Entrypoint". In this tips I kind of expect that you've played around with Docker a bit, probably even have some containers running for your dev environment. So, in short, if you haven't played yet, go play and come back!

read more