Support publishing as Docker Engine managed plugin #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have taken the files from the pull request made by @olljanat that was based on work by @nickbreen found here
To get the plugin to work from within a container I have had to make some changes.
syslog does not run in the context of a container and so the logging library has been replaced from log/syslog to log. I don't know if docker plugins create logs but if they do the docker syslog logging driver could be used to get the original functionality
The plugin requires a config file at /etc/docker/docker-lvm-plugin, This is my first time editing a go project and so I felt it was best to add a volume name to this config file instead of removing the code that checks for it (setting the default volume name should be done by environment variable when running as a managed plugin)
Will allow you close #66