Native Docker Volume Cloning Using nDVP

At NetApp Insight this year I had the privilege of being on stage for the day three keynote, along with two of NetApp’s finest: Garrett Mueller and Josh Atwell. The three of us delivered an unconventional, but well received, “demo” around the concept of DevOps and what continuous integration and continuous deployment look like in reality. While this was very interesting, and hopefully eye opening, for many people, this post will focus on a feature in the NetApp Docker Volume Plugin (nDVP) which we very quietly announced during the keynote presentation.

During the “fix” phase of the demo we showed the cloning of a Docker volume from a snapshot for use by the application. While this isn’t something terribly exciting for many storage, or even infrastructure, administrators, it’s not normally a feature that application developers have direct access to. We are extremely happy to announce that the nDVP has the ability to create volume clones directly from the docker volume interface for both ONTAP and SolidFire systems. This means that by simply supplying the source volume, and optionally the source snapshot name, a volume can quickly, easily, and seamlessly be created by the Docker user for development, test, and recovery, or any other purpose you choose.

Cloning Your Data

Creating a clone is exactly as easy as you would expect. The nDVP was enhanced in version 1.3, which works with Docker 1.12, to report snapshots when doing a docker volume inspect. We then use this information to create a new Docker volume by passing just two parameters to the docker volume create command.

Let’s look at an example of how to use this functionality:

Alternatively, if your volume has an existing snapshot, you could use that as the source for your new volume. When we inspect the volume using docker volume inspect we can see a listing of the snapshots associated with it.

docker_volume_inspect

Armed with the name of the snapshot we can create a new volume from it:

Making Storage Work For You

Data is the most critical component of any application. Making your data more accessible and consumable across all phases of the application life cycle enhances its value even further. Using a storage system which facilitates that functionality ensures happy developers, and happier applications. The new functionality in the nDVP makes it that much simpler for the application developers and administrators to use the functionality which is critical to their success, all without having to rely on or wait for anyone else.

If you’re interested in using this functionality, be sure to check out nDVP version 1.3 with Docker 1.12+. There’s full details on the GitHub repo on how to get started with the NetApp Docker Volume Plugin. Creating volume clones has many different use cases, not just the recovery scenario we showcased during the keynote. Creating test and development environments, validating data integrity, data analytics, and so much more become easier. Layering on functions of the storage platforms, like quality of service, ensure that the production environment is truly isolated from any additional functionality you may discover for your data. Empower the developer, see what they can do!

If you have any questions please join us in the Slack channels or send an email to opensource@netapp.com! Or, you can reach out to us on the developer community, developer.netapp.com. We love hearing from you and learning about your challenges!

Andrew Sullivan on GithubAndrew Sullivan on Twitter
Andrew Sullivan
Technical Marketing Engineer at NetApp
Andrew has worked in the information technology industry for over 10 years, with a rich history of database development, DevOps experience, and virtualization. He is currently focused on storage and virtualization automation, and driving simplicity into everyday workflows.

1 thought on “Native Docker Volume Cloning Using nDVP

Leave a Reply