Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Socket /var/run/docker/plugins/btrfs.sock #20

Closed
kaotika opened this issue Jun 6, 2018 · 2 comments
Closed

No Socket /var/run/docker/plugins/btrfs.sock #20

kaotika opened this issue Jun 6, 2018 · 2 comments

Comments

@kaotika
Copy link

kaotika commented Jun 6, 2018

Hi, many thanks for the great idea so far. Iam loving btrfs and doing scheduled stuff like snapshotting, syncing, etc. directly with docker is a really great addition.

After installing the plugin like described there is no socket inside /var/run/docker/plugins/. The plugin created a socket at some subpath, e.x. /var/run/docker/plugins/4537bd7d3e863809942031a9f87c54c2f5c38922d4286c1d9ebbcea3d6df4f22/btrfs.sock.
I could bring the plugin to work by creating a symbolic link ln -s /4537bd7d3e863809942031a9f87c54c2f5c38922d4286c1d9ebbcea3d6df4f22/btrfs.sock /var/run/docker/plugins/btrfs.sock and manually starting the daemon buttervolume run.

Running buttervolume run printed the following:

Starting scheduler job every 60s
Listening to requests...
Serving on http://unix:/run/docker/plugins/btrfs.sock
INFO:root:New scheduler job at 2018-06-06 12:22:20.475458
@petrus-v
Copy link

petrus-v commented Jun 6, 2018

hum... I thinks the documentation may mixed information from previous version 2.

Once plugins is up:

sudo docker plugin ls
ID                  NAME                         DESCRIPTION                      ENABLED
3ebe8b89b151        anybox/buttervolume:latest   BTRFS Volume Plugin for Docker   true

buttervolume should be already running.

So you can create anybox/buttervolume:latest likes:

sudo docker volume create --name testbtrfs -d anybox/buttervolume:latest
testbtrfs

Then to schedul jobs there is various way, one is to install buttervolume command line client

buttervolume scheduled # this is to list jobs

or using the command line client installed inside the plugin:

alias drunc="sudo docker-runc --root /var/run/docker/plugins/runtime-root/plugins.moby/"
alias buttervolume="drunc exec -t `drunc list|tail -n+2|awk '{print $1}'` buttervolume"
buttervolume --help

I think it's not necessary anymore to have btrfs.sock in /var/run/docker/plugins, (maybe expected for the first use case when installed separetly)

hope that helps,
regards

@ccomb
Copy link
Member

ccomb commented Jun 7, 2018

Hi, I've just released version 3.5 with a more explicit doc about the socket and the difference between running butterbolume as a new-style plugin or running it manually. Closing this issue, you can reopen if you still have some suggestion. Thanks!

@ccomb ccomb closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants