Containers Made Easy part 2 Handling Docker image format In a previous post I’ve described briefly what is a container. Now it’s time to get dirty and build some real stuff. In this part we will focus on the format used to pack images and Docker registry API for pulling content. At the end of this post you will have working code that is capable of downloading some images (tested just few popular ones), unpacking all layers and mount them somewhere into file system.
Containers Made Easy part 1 When you type containers or docker into any search engine you will get a lot of pages about using docker and comparing it with virtual machines. Writing another post just about it would be waste of mine and more important your time. So I would like to do it in a bit different (and probably a lot longer) way. General idea is to write series of posts where I’ll show you how to write your own container engine that is capable of running docker images.
Choose Your Weapon Before we start digging into software development world and creating own admin tools we should choose a programming language. I want to write about language I’ve chosen for myself few years ago, Go. I don’t say that this is the language that you should use, but I’ll try to convince you in this post why this might be a good idea. Also most of my posts about software development will be in Go.