You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
I have a nonstandard filesystem layout for docker and installing this plugin gives me this error unless I make /var/lib/docker/plugins:
$ docker plugin install vieux/sshfs DEBUG=1
Plugin "vieux/sshfs" is requesting the following privileges:
- network: [host]
- mount: [/var/lib/docker/plugins/]
- device: [/dev/fuse]
- capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y
latest: Pulling from vieux/sshfs
a23658ccfda2: Download complete
Digest: sha256:d33ffa08df2a4fa87f83fded4ac3ac2e3a96d296c55aa1a0afce33fb2cc7b9b0
Status: Downloaded newer image for vieux/sshfs:latest
Error 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\\\"\""
I 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.
I do see that it is mentioned explicitly in the configuration in the mounts blob:
@xemdetia thanks for the report, You are right I hardcoded /var/lib/docker/plugins/ assuming it would always exists, but it might not, I'll look into this.
You may have assumed that because by default docker home is in /var/lib/docker. Thank you for allowing that variable to be settable, but I think defaulting to Docker Root Dir as in docker info would be better.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a nonstandard filesystem layout for docker and installing this plugin gives me this error unless I make
/var/lib/docker/plugins
:I 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.
I do see that it is mentioned explicitly in the configuration in the mounts blob:
The text was updated successfully, but these errors were encountered: