Docker Community Forums

Share and learn in the Docker community.

Docker Volume Plugin example

Hi,

Are there any working “helloworld” type examples for creating a Docker Volume Plugin. All of the examples seem very complicated and not very well documented.

I found this: go-plugins-helpers but it doesnt explain what to do.
And this: docker-volume-plugin-example but this won’t even compile.

The Docker docs don’t really explain or show how to get started either. I’m looking for a simple step by step using either GoLang or maybe Python.

Any help would be very much appreciated.

By having the user specify a volumename, a plugin can associate the volume with an external volume beyond the lifetime of a single container or container host. This can be used, for example, to move a stateful container from one server to another.

Looking for info myself. You may find this useful, I’m still trying to grok.