docker-volume-sshfs
docker-volume-sshfs copied to clipboard
installation does not work
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
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
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
.
Also can't install on Debian bullseye . Tried building myself, but can't then install it via docker plugin install [what]