Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

installation does not work #82

Open
daveschere opened this issue May 14, 2021 · 3 comments
Open

installation does not work #82

daveschere opened this issue May 14, 2021 · 3 comments

Comments

@daveschere
Copy link

docker plugin install vieux/sshfs

Plugin "vieux/sshfs" is requesting the following privileges:

  • network: [host]
  • mount: [/var/lib/docker/plugins/]
  • mount: []
  • device: [/dev/fuse]
  • capabilities: [CAP_SYS_ADMIN]
    Do you grant the above permissions? [y/N] y
    latest: Pulling from vieux/sshfs
    52d435ada6a4: Download complete
    Digest: sha256:1d3c3e42c12138da5ef7873b97f7f32cf99fb6edde75fa4f0bcf9ed277855811
    Status: Downloaded newer image for vieux/sshfs:latest

Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/var/lib/docker/plugins/\" to rootfs \"/var/snap/docker/common/var-lib-docker/plugins/738a1a6b8c55c49cfc6afab87007f63fd60dfa0c48d574b963d4d647303389d6/rootfs\" at \"/mnt/state\" caused \"stat /var/lib/docker/plugins/: no such file or directory\""": unknown

@daveschere daveschere changed the title installations doesn't work installation doese not work May 14, 2021
@daveschere daveschere changed the title installation doese not work installation does not work May 14, 2021
@aduzsardi
Copy link

works just fine using these options

docker plugin install --alias sshfs --grant-all-permissions vieux/sshfs sshkey.source=/srv/.ssh/

i put my ssh private key in /srv/.ssh/ owned by root and chmod 700 /srv/.ssh/ and chmod 600 /srv/.ssh/id_rsa

and then created volume using

docker volume create -d sshfs -o sshcmd=root@myhost:/etc/letsencrypt -o IdentityFile=/root/.ssh/id_rsa -o StrictHostKeyChecking=no certs

@Jip-Hop
Copy link

Jip-Hop commented Dec 11, 2021

On a fresh Ubuntu 20.04.3 LTS I got the same error:

sudo docker plugin install vieux/sshfs
Plugin "vieux/sshfs" is requesting the following privileges:
 - network: [host]
 - mount: [/var/lib/docker/plugins/]
 - mount: []
 - device: [/dev/fuse]
 - capabilities: [CAP_SYS_ADMIN]
Do you grant the above permissions? [y/N] y
latest: Pulling from vieux/sshfs
Digest: sha256:1d3c3e42c12138da5ef7873b97f7f32cf99fb6edde75fa4f0bcf9ed277855811
52d435ada6a4: Complete 
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/var/lib/docker/plugins/" to rootfs at "/mnt/state" caused: stat /var/lib/docker/plugins/: no such file or directory: unknown

Directory /var/lib/docker/plugins/ doesn't exist when installing docker using snap (which the ubuntu server installation wizard offers). I removed docker with snap remove docker and installed it according to the official docker instructions. Then I could install vieux/sshfs just fine with sudo docker plugin install vieux/sshfs.

@more-pepsi
Copy link

Also can't install on Debian bullseye . Tried building myself, but can't then install it via docker plugin install [what]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants