Docker 0.8: Quality, new builder features, btrfs, OSX support

Fellow Dockers,

Today we are happy to introduce Docker 0.8, with a focus on Quality and 3 notable features: new builder instructions, a new BTRFS storage driver, and official support for Mac OSX. You can see the full Changelog on the repository, and read below for details on each feature.

This release is special in several ways:

First, this is the first Docker release where features take the backseat to quality: dozens and dozens of bugfixes, performance boosts, stability improvements, code cleanups, extra documentation and improved code coverage – that’s the primary feature in Docker 0.8. We still have ways to go, and there are still many open bugs! But we are making progress and will continue to focus on Quality until it becomes a defining characteristic of Docker.

Second, this release marks the beginning of a new release cadence, which we hope you will find simpler and clearer. It’s a very simple cycle:

  • One release per month. Every first week of the month, we release a new version of Docker. For example, in the first week of March we will release 0.9.

  • Master always works. We only merge patches which we consider ready to be released. And we only release what is in master. This makes it very easy to test upcoming features or distribute a “bleeding edge” version of docker. Simply build from master and you will get the current release candidate.

  • Not feature-based. Release dates are not linked to any specific features. If a feature is merged before the release date, it gets released. Otherwise, the next merge window is only a month away.

  • Simple numbering. We follow the Linux convention for numbering versions. The first digit indicates a major change in the project’s lifecycle. For example, 1.0 indicates that the project is considered ready for production use. The second digit indicates regularly scheduled releases. The third digit is reserved for hotfixes, stability backports etc.

Lastly, this release marks the beginning of our support for platforms other than Linux on 64bit x86. With Docker 0.8 we are focusing on Mac support – but expect us to start supporting more and more platforms over the next few releases. As many of you have pointed out, “run anywhere” is only useful if you can actually, you know… run anywhere :)

Thank you to the entire Docker community, and happy hacking!

The Docker team

Credits

A special thank you to the 128 people who participated in this release, including but not limited to: Paul Tagliamonte, Lokesh Mandvekar, Josh Poimboeuf, Steeve Morin, Brandon Philips, Thatcher Peskens, Paul Nasrat, Roberto Hashioka, Johan Euphrosine, Danny Yates, Brian Goff, John Feminella, Jonathan Rudenberg, Josh Hawn, Joffrey Fuhrer, Maxime Petazzoni, Alex Larsson, Charles Lindsay, Bartłomiej Piotrowski, Gabriel Monroy, Sam Alba, Johannes Ziemke, Graydon Hoare, Andrews Medina, Peter Waller, Tzu-Jung Lee, Silas Sewell, Marek Goldmann.

We would also like to welcome several new maintainers on board: Sven Dowideit, Cristian Staretu and James Turnbull. Thank you for investing so much of your time and energy in the sometimes unglamorous work of maintaining such a young and active project, warts and all. And a special thank you to Andrew “Tianon” Page who has been a de facto maintainer since the 0.6 releases and has been essential to making Docker what it is.

And lastly, a big thank you to the maintainers of the Docker hosted infrastructure: without them keeping the public registry, website, authentication and other essential services running 24/7, Docker would be much less useful and not nearly as fun to use. So thanks Sam, Ken, Jerome, Johannes, Dustin, Josh, Thatcher, Daniel, John and Joffrey!

Quality

Docker 0.8 is the first release to be defined primarily by quality improvements. Sure, it packs cool features – but the majority of the work happened under the hood, one small incremental improvement at a time. With the precious help of many contributors who volunteered countless hours of debugging, support, patching and refactoring, we are inching our way towards our goal: making Quality one of the defining qualities of Docker – something that is not just “good enough”, but one of the reasons people use Docker.

We still have a lot of work to do to reach that goal – but we are making progress! Here are some of the quality improvements in Docker 0.8:

  • Images and containers can be removed much faster

  • Building an image from source with docker build is now much faster

  • The Docker daemon starts and stops much faster.

  • The memory footprint of many common operations has been reduced, by streaming files instead of buffering them in memory, fixing memory leaks, and fixing various suboptimal memory allocations.

  • Several race conditions were fixed, making Docker more stable under very high concurrency load. This makes Docker more stable and less likely to crash and reduces the memory footprint of many common operations.

  • All packaging operations are now built on the Go language’s standard tar implementation, which is bundled with Docker itself. This makes packaging more portable across host distributions, and solves several issues caused by quirks and incompatibilities between different distributions of tar.

  • Docker can now create, remove and modify larger numbers of containers and images graciously thanks to more aggressive releasing of system resources. For example the storage driver API now allows Docker to do reference counting on mounts created by the drivers.

  • Many components have been separated into smaller sub-packages, each with a dedicated test suite. As a result the code is better-tested, more readable and easier to change.

New builder features

Docker 0.8 improves the docker build command in several cool ways:

ADD caching

This is by far the most requested builder feature. The ADD instruction now supports caching, which avoids unnecessarily re-uploading the same source content again and again when it hasn’t changed. This, in turn, can speed up builds considerably, especially in a development cycle where the same container is built very often.

In practice, if your Dockerfiles use the ADD instruction (and they probably should), Docker 0.8 may reduce your average re-build time by up to several minutes, depending on the amount of processing involved in your build.

ONBUILD triggers

The new ONBUILD instruction adds to your image a “trigger” instruction to be executed at a later time, when the image is used as the base for another build. The trigger will be executed in the context of the downstream build, as if it had been inserted immediately after the FROM instruction in the downstream Dockerfile.

Any build instruction can be registered as a trigger.

This is useful if you are building an image which will be used as a base to build other images, for example an application build environment (sometimes known as “buildpacks”) or a daemon which may be customized with user-specific configuration.

You can find more details on the ONBUILD instruction in the official documentation.

BTRFS storage driver

Experimental

Docker 0.8 now ships with an experimental storage driver which uses the BTRFS filesystem for copy-on-write. BTRFS is a relatively recent filesystem which has been gaining traction in the Linux community – it is usually presented as an alternative to the ZFS filesystem. Although it is still considered experimental, it has a loyal and growing following in the Linux sysadmin community.

This driver is experimental and disabled by default. If you want to try it, you can start the docker daemon with docker -d -s btrfs

Note that the BTRFS driver will only work if Docker is running on a BTRFS partition already prepared by the host system. Unlike the devicemapper driver, it will not automatically create a new dedicated partition.

Mac OSX support

Starting with version 0.8, Docker is officially supported on Mac OSX. This allows sysadmins and developers to build and run Linux applications as Docker containers, directly on their Mac machine.

Installing Docker on a Mac is a 2-step process:

  • First, install the Docker binary which will forward all commands to a remote docker daemon

  • Second, install Boot2Docker, which is a super-lightweight Linux VM capable of running a docker daemon on your Mac with the smallest possible overhead. Currently it occupies 24MB on disk and boots in less than 10 seconds.

The combination of a native Docker client and a super-lightweight VM gives us the best of both worlds: you can run Docker completely offline, without depending on an outside machine – and you can still run the exact same containers that will later be deployed in production to your Linux servers.

 For the full instructions on how to install Docker on a Mac, see the official docs.

EmailFacebookTwitter

26 Responses to “Docker 0.8: Quality, new builder features, btrfs, OSX support”

  1. Jeff

    “Although it is still considered experimental, it has a loyal and growing following in the Linux sysadmin community.”

    ZoL (ZFSonLinux, http://zfsonlinux.org/) has a loyal and even faster-growing following, as well as a mature, non-experimental codebase. Please support it!

  2. Eric Miller

    This is great to hear. If I do my math correctly, does this mean Docker 1.0 April 1? I know it’s tricky predicting, but just trying to have some visibility. Back in August (http://blog.docker.io/2013/08/getting-to-docker-1-0/) the thought was Docker 0.8 in October and it being production ready. Obviously that has changed. I’m also assuming we now are assuming 1.0 is what will be production ready. Is that correct?

    Thanks for the good work.

  3. Docker 0.8: Quality, new builder features, btrfs, OSX support ... | cPanel Knowledge

    […] Docker 0.8: Quality, new builder features, btrfs, OSX support … […]

  4. Docker 0.8 发布,宣布将每月发布新版 | 新世纪Linux社区

    […] Docker 0.8 带来了BTRFS和OSX支持等诸多新特性。此次发布还宣布新的版本发布策略,计划每月发布一个新版本。 […]

  5. DockerがOSXサポート

    […] DOCKER 0.8: QUALITY, NEW BUILDER FEATURES, BTRFS, OSX SUPPORTの最後の方でOSXレポートについて触れています。 […]

  6. Mac OS Xをサポートした「Docker 0.8」リリース

    […] 軽量LinuxコンテナDockerの最新版「Docker 0.8」がリリースされています(公式Blog)。 […]

  7. Docker 0.8 released | Linux-Support.com

    […] 0.8 of the Docker container-creation system has been announced. This release brings some changes to the development process: “First, this is the first […]

  8. Giotti

    Congratulations on the release!

  9. Новая версия системы управления контейнерной виртуализацией Docker 0.8 | AllUNIX.ru — Всероссийский портал о UNIX-системах

    […] Увидел свет выпуск инструментария для управления изолированными Linux-контейнерами Docker 0.8. Docker дополняет инструментарий LXC более высокоуровневым API, позволяющий манипулировать контейнерами на уровне изоляции отдельных процессов. В частности, Docker позволяет не заботясь о формировании начинки контейнера запускать произвольные процессы в режиме изоляции и затем переносить и клонировать сформированные для данных процессов контейнеры на другие серверы, беря на себя всю работу по созданию, обслуживанию и сопровождению контейнеров. […]

  10. Yebaa.com | Docker challenges virtualization market with containers

    […] where features take the back seat to quality,” wrote Docker creator Solomon Hykes, in a blog post announcing the latest version of the software, Docker […]

  11. Docker challenges virtualization market with containers

    […] where features take the back seat to quality,” wrote Docker creator Solomon Hykes, in a blog post announcing the latest version of the software, Docker […]

  12. Docker challenges virtualization market with containers | What's On Scotland

    […] where features take the back seat to quality,” wrote Docker creator Solomon Hykes, in a blog post announcing the latest version of the software, Docker […]

  13. Marcus

    Is there some documentation about how the BTRFS driver works, how the partition needs to be prepared, etc?

  14. Docker challenges virtualization market with containers | Computer Repair in Raleigh NC

    […] where features take the back seat to quality,” wrote Docker creator Solomon Hykes, in a blog post announcing the latest version of the software, Docker […]

  15. Docker Releases Faster, More Stable Version 0.8 | PHP World

    […] has released version 0.8 of their lightweight Linux container project, continuing their march on 1.0. This release focuses […]

  16. Dockerが公式にOS Xに対応したので試してみた | fixture.jp

    […] DOCKER 0.8: QUALITY, NEW BUILDER FEATURES, BTRFS, OSX SUPPORT – […]

  17. Docker 0.8 z obsługą OS X, nowym konstruktorem i nowymi sterownikami Btrfs | OSWorld.pl

    […] wydanie Docker 0.8. Jest to narzędzie, które pakuje aplikację i jej zależności w specjalny wirtualny kontener, […]

  18. codescaling | Docker officially for Mac, Tails fixes updates and CoffeeScript’s fresh brew – Snippets

    […] platform, switches to a new release schedule, the first of the monthly releases has arrived and Docker 0.8 has couple of new goodies along with the focus on quality and . One item worth mentioning is the […]

  19. Chris Ball » Dell C6100 XS23-SB server

    […] why I’m not using Docker, which is the hot new thing for Linux containers; especially since Docker 0.8 was just released with experimental Btrfs support. It turns out that Docker’s better at […]

  20. Justin

    Love it… The only thing stopping me from using docker client on OS X is the lack of being able to mount my code folder =(

  21. widuu

    HI,I’m widuu,and come from china,I’ve put the docker documents translated into Chinese,I wish (hope) to get authorization,website http://www.widuu.com/docker/index.html github:https://github.com/widuu/docker_course

  22. Docker challenges virtualization market with containers - The Headlines Now - Live News India, World, Business, Technology, Sports, Fashion, LifeStyle & Entertainment

    […] features take the back seat to quality,” wrote Docker creator Solomon Hykes, in a blog post announcing the latest version of the software, Docker […]

Comments are closed.