Docker Language Stacks

n.b. this is an old post that I forgot to publish — still, might be useful to someone

Using Docker for containerization has now become easier with the recently released Language Stacks.

Language Stacks are Docker’s official versions of programming language specific base images for your Dockerfile. They give you a head start by providing a stable base, as well as a best-practice way to get started with a large number of languages, all of which are supported officially.

Docker, incase you have missed it, is a developer friendly layer on top of LXC (Linux Containers) providing an easy way to build and package applications or services in to portable images. Although relatively new — Docker launched March 2013 — it has seen rapid adoption, mainly due to ease of use along with its build-once run-anywhere advantages over existing techniques.

Previously the only way to do this was to either create your own Dockerfile from scratch or to wade through a long list of public images others had written and pushed to the hub. Both of which were painful; writing your Dockerfile meant significant time and knowledge of Ubuntu (usually 15+ lines of commands) was required to install dependancies and Language, as the starting point was a bare base image. Choosing a publicly available image was hit and miss, users ended up facing questions about the author and did they set it up properly? These worries are removed and replaced with a single line.

Official support fixes both of the above issues, but what does this mean for you? In short, a significantly easier time putting together an application using Docker:

A Business Wire press release reported this from a Docker executive:

“Dockerized language stacks strengthen the pre-packaged catalog of building blocks freely available to our developers,” said Scott Johnston, SVP of product at Docker. “Developers can instantly assemble applications, while eliminating a sequence of time-consuming workflows previously dedicated to building these stacks.”

In the same announcement, Docker also revealed guidelines for submitting Official Repositories, covering the basic requirements such as it being stored in Git and having a logo, through to much more technical needs in the Dockerfile itself. Unsurprisingly given the size, the community is already requesting support and working on new languages themselves.