search
Good news: Multi-stage builds have come to the stable release

Docker CE 17.06 is here — First version built entirely on the Moby Project

Gabriela Motroc

© Shutterstock / IhorL

Docker CE 17.06 is here and it comes bearing gifts. The exciting part about it is that this is the first Docker version built entirely on the Moby Project. Let’s have a look at some of the new features.

Docker CE 17.06 is here! For those who don’t know why the sudden change [although it’s not that sudden since we’ve already had 17.03], Jerome Petazzoni, senior engineer at Docker recently told JAXenter why Docker decided to move to time-based releases and a YY.MM versioning scheme. You can find the interview here.

Docker CE 17.06 is the first version built entirely on the Moby Project. Read on to find out what’s new about this release. However, if you want to get your Docker news fix faster, here’s a video featuring Mano Marks, Docker Developer Relations Director, in which he explains Docker 17.06’s new features and improvements.

SEE ALSO: Moby Project — The “Lego Club” of Docker containers

Docker CE 17.06 overview

The star of the release is probably the fact that multi-stage builds, [announced a couple of months ago at DockerCon], have come to the stable release. In short, multi-stage builds allow users to build cleaner, smaller Docker images using a single Dockerfile, according to the blog post announcing the new release.

“Multi-stage builds work by building intermediate images that produce an output. That way you can compile code in an intermediate image and use only the output in the final image.” For example, even though Java developers usually use Apace Maven to compile their apps, Maven is not required to run their apps. Therefore, multi-stage builds can result in a substantial image size savings:

Multi-stage builds result in a substantial image size savings

Logs and metrics

Docker now supports metrics through an API endpoint in the daemon. Users can expose docker’s /metrics endpoint to plugins. However, keep in mind that even though metrics plugins are available on non-experimental daemons, the labels are still considered experimental and could change in future versions of Docker.

Docker also added support for log driver plugins. Furthermore, Docker service logs is now in the Stable release, which means that users can get consolidated logs for an entire service running on a Swarm. There’s an endpoint for logs from individual tasks within a service as well.

Networking

Docker supports a variety of networking options. With this new release, users can attach services to node-local networks such as Host, Macvlan, IPVlan, Bridge, and local-scope plugins.

Docker 17.06 also features a number of new features in swarm mode including a new configuration object for swarm mode that allows users to securely pass along configuration information in the same way they pass along secrets.

Furthermore, docker events can help users get real-time event information from Docker, which might come in handy when writing automation and monitoring applications that work with Docker. Until Docker CE 17.06 CE, Docker didn’t have support for events for swarm mode.

SEE ALSO: The most common myths about Docker debunked

Desktop editions

There are three new features in Docker for Mac and Windows:

  • GUI option to reset Docker data without losing all settings

  • Add an experimental DNS name for the host

  • Login certificates for authenticating registry access

Say bye-bye to …

Docker has dropped the --api-enable-cors flag [in the dockerd commandline] in favor of --api-cors-header. However, they are not removing --api-enable-cors entirely.

Ubuntu 12.04 “precise pangolin” has been end-of-lifed, so it is now no longer a supported OS for Docker. Later versions of Ubuntu are still supported.

For more details about the new features in Docker 17.06, check out the Docker blog.

asap

Author
Gabriela Motroc
Gabriela Motroc is an online editor for JAXenter.com. Before working at S&S Media she studied International Communication Management at The Hague University of Applied Sciences.

Comments
comments powered by Disqus