Docker 1.10, Machine 0.6.0, Compose 1.6.0 – better volumes and networking

Docker 1.10 is now released!

Docker Logo

Read about all the new features in Docker 1.10. A quick summary:

  • New Compose file format
  • Much better networking
  • Much better security
  • Swarm becomes 1.1, with Mesos integration

Read Docker 1.10 release notes.

Lets look at some of the key components.

Docker Machine 0.6.0

Docker Machine makes it really easy to create Docker hosts on your computer, on cloud providers and inside your own data center. It creates servers, installs Docker on them, then configures the Docker client to talk to them.

Latest version can be installed as:

docker-machine now shows the Docker server version:

The latest server version is 1.10. And so docker upgrade command can be used to fix that:

The updated list of Machines is now shown as:

Notice that Docker version is now 1.10.

Set up the environment variables such that Docker client can talk to it:

Docker Client 1.10

Lets download the latest client to connect to this Docker Engine.

Client and Server versions are shown separately.

Run Couchbase container as:

This starts up a fully-configured Couchbase server. It can be accessed at 192.168.99.100:8091 and looks like as shown:

Docker 1.10 - Couchbase Console

Note, 192.168.99.100 is obtained using docker-machine ip <MACHINE-NAME>.

Couchbase Developer Portal provide more details about the Couchbase Server.

Docker Compose 1.6.0

Docker Compose is a tool for defining and running complex applications with Docker. With Compose, you define a multi-container application in a single file, then spin your application up in a single command which does everything that needs to be done to get it running.

Learn more about Docker Compose 1.6.0.

Install the latest version:

The experimental flags --x-networking and --x-network-driver, introduced in Compose 1.5, have been removed. Its no longer experimental and is the recommended way to enable communication between containers.

Compose 1.6.0 requires Docker Engine 1.9.1 or later, or 1.10.0 if you’re using version 2 of the Compose File format.

Updating Compose File

Compose 1.6 introduces a new version of the Compose file. Read more details about Upgrading Compose File.

Compose 1.6 will continue to run older version of Compose files. But now networking and volumes are first class citizens.

Here is an example of version 1 of Compose file:

Here is a version 2 of Compose file:

For simple use cases, the two main changes are:

  • Add a version: '2' line at the top of the file.
  • Indent the whole file by one level and put a services: key at the top.

Running services in this Compose file is:

This starts a fully configured Couchbase server based upon the image as explained at github.com/arun-gupta/docker-images/tree/master/couchbase-node.

Docker Swarm 1.1

Docker Swarm is native clustering for Docker. It allows you to create and access a pool of Docker hosts using the full suite of Docker tools. Because Docker Swarm serves the standard Docker API, any tool that already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts.

A new experimental support for container rescheduling on node failure is added.

Read more details about setting up Docker Swarm Cluster.

Finally, here are some useful links:

  • Docker Toolbox 1.10
  • Docker 1.10 Release Notes
  • Docker 1.10 Security Improvements
  • Docker for Java Developers

Enjoy!

Be Sociable, Share!
  • Tweet

7 thoughts on “Docker 1.10, Machine 0.6.0, Compose 1.6.0 – better volumes and networking

  1. Pingback: Docker 1.10, Machine 0.6.0, Compose 1.6.0 – better volumes and networking | Developer Agent
  2. Thanks for such knowledgeable article you can use the codes in command prompt in windows 10 so just from here learn to access administrator windows command prompt commands in windows 10 operating system in easiest way.

  3. Machine working is really good and it increases day by day. The essay writing companies also work on machine learning and the next era is also based on machine learning.

  4. By the way, information from https://pro-academic-writers.com/blog/philosophy-degree might be useful for you. Especially if you eant to know more about philosophy degree

  5. I am looking for the settings of Docker Client 1.10 so I can use it on Akaso Brave 4 Vs GoPro buyer guide for more work. And test it again.

  6. Networking is the engineering discipline worried with communication between computer systems or devices, PTCL Speed Booster available.

  7. Don’t ever give up on your blogs as they are a source of happiness for the people. Keep sharing. Thank you. cool math games

Leave a Reply

Your email address will not be published. Required fields are marked *