{"action":"opened","issue":{"url":"https://api.github.com/repos/vieux/docker-volume-sshfs/issues/25","repository_url":"https://api.github.com/repos/vieux/docker-volume-sshfs","labels_url":"https://api.github.com/repos/vieux/docker-volume-sshfs/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/vieux/docker-volume-sshfs/issues/25/comments","events_url":"https://api.github.com/repos/vieux/docker-volume-sshfs/issues/25/events","html_url":"https://github.com/vieux/docker-volume-sshfs/issues/25","id":248585987,"number":25,"title":"/var/lib/docker/plugins required to exist at docker plugin install time","user":{"login":"xemdetia","id":223207,"avatar_url":"https://avatars2.githubusercontent.com/u/223207?v=4","gravatar_id":"","url":"https://api.github.com/users/xemdetia","html_url":"https://github.com/xemdetia","followers_url":"https://api.github.com/users/xemdetia/followers","following_url":"https://api.github.com/users/xemdetia/following{/other_user}","gists_url":"https://api.github.com/users/xemdetia/gists{/gist_id}","starred_url":"https://api.github.com/users/xemdetia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xemdetia/subscriptions","organizations_url":"https://api.github.com/users/xemdetia/orgs","repos_url":"https://api.github.com/users/xemdetia/repos","events_url":"https://api.github.com/users/xemdetia/events{/privacy}","received_events_url":"https://api.github.com/users/xemdetia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-08T02:51:34Z","updated_at":"2017-08-08T02:51:34Z","closed_at":null,"body":"I have a nonstandard filesystem layout for docker and installing this plugin gives me this error unless I make `/var/lib/docker/plugins`:\r\n\r\n```\r\n$ docker plugin install vieux/sshfs DEBUG=1\r\nPlugin \"vieux/sshfs\" is requesting the following privileges:\r\n - network: [host]\r\n - mount: [/var/lib/docker/plugins/]\r\n - device: [/dev/fuse]\r\n - capabilities: [CAP_SYS_ADMIN]\r\nDo you grant the above permissions? [y/N] y\r\nlatest: Pulling from vieux/sshfs\r\na23658ccfda2: Download complete \r\nDigest: sha256:d33ffa08df2a4fa87f83fded4ac3ac2e3a96d296c55aa1a0afce33fb2cc7b9b0\r\nStatus: Downloaded newer image for vieux/sshfs:latest\r\nError response from daemon: rpc error: code = 2 desc = oci runtime error: container_linux.go:262: starting container process caused \"process_linux.go:339: container init caused \\\"rootfs_linux.go:57: mounting \\\\\\\"/var/lib/docker/plugins/\\\\\\\" to rootfs \\\\\\\"/opt/docker/docker-official/graph/plugins/6229d8108d4ceb0dedc25af4c131cdc45df1a43a2ed3621e24f8a2a43f0b8e99/rootfs\\\\\\\" at \\\\\\\"/mnt/state\\\\\\\" caused \\\\\\\"stat /var/lib/docker/plugins/: no such file or directory\\\\\\\"\\\"\"\r\n```\r\nI can't seem to find a reason in the code as it's requirement to this directory. Once I make the directory the issue goes away. I do not run docker as the root user so if it is supposed to auto-create it I do not have permissions to.\r\n\r\nI do see that it is mentioned explicitly in the configuration in the mounts blob:\r\n```\r\n            \"Mounts\": [\r\n                {\r\n                    \"Description\": \"\",\r\n                    \"Destination\": \"/mnt/state\",\r\n                    \"Name\": \"\",\r\n                    \"Options\": [\r\n                        \"rbind\"\r\n                    ],\r\n                    \"Settable\": null,\r\n                    \"Source\": \"/var/lib/docker/plugins/\",\r\n                    \"Type\": \"bind\"\r\n                }\r\n            ]\r\n```"}}
{"actor":{"display_login":"xemdetia"}}