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

Can't enable on RPi1 (armv6l) nor RPi3 (aarch64) #64

Open
aartigao opened this issue Nov 1, 2018 · 6 comments
Open

Can't enable on RPi1 (armv6l) nor RPi3 (aarch64) #64

aartigao opened this issue Nov 1, 2018 · 6 comments

Comments

@aartigao
Copy link

aartigao commented Nov 1, 2018

Hi!

I've several RPis (Versions 1 and 3) with Arch Linux ARM installed which I'd like to use as a Swarm cluster. All have package sshfs installed and tested, but I can't install/enable the plugin (all models return the same error).

The plugin seems to install...

yellow% docker plugin ls  
ID                  NAME                 DESCRIPTION               ENABLED
f40af84ee646        vieux/sshfs:latest   sshFS plugin for Docker   false

but doesn't want to start:

yellow% docker plugin enable vieux/sshfs
Error response from daemon: dial unix /run/docker/plugins/f40af84ee646cd1de6d5500646ec501bfadff451d3b3833fc639c61f297b63e9/sshfs.sock: connect: no such file or directory

Plugin installs fine on my laptop (although sshfs is not installed there).

Installation info:

RPi1

purple% docker --version
Docker version 18.06.1-ce, build e68fc7a215
purple% uname -a
Linux purple 4.14.78-2-ARCH #1 SMP Sun Oct 28 17:15:44 UTC 2018 armv6l GNU/Linux
purple% sshfs --version
SSHFS version 3.5.0
FUSE library version 3.2.6
using FUSE kernel interface version 7.26
fusermount3 version: 3.2.6

RPi3

yellow% docker --version
Docker version 18.06.1-ce, build e68fc7a215
yellow% uname -a
Linux yellow 4.19.0-1-ARCH #1 SMP Mon Oct 22 19:31:43 MDT 2018 aarch64 GNU/Linux
yellow% sshfs --version
SSHFS version 3.5.0
FUSE library version 3.2.6
using FUSE kernel interface version 7.26
fusermount3 version: 3.2.6

Laptop

[alan@laptop ~]$ docker --version
Docker version 18.06.1-ce, build e68fc7a215
[alan@laptop ~]$ uname -a
Linux laptop 4.18.16-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018 x86_64 GNU/Linux

Am I missing something? Does someone successfully installed the plugin on RPi? Any advice would be helpful.

Thanks in advance!

@ngalaiko
Copy link

ngalaiko commented Dec 4, 2018

You need to build it yourself for arm architecture.

@richardrey
Copy link

Hello, is there anyone who can tell me how I can build the plugin.

thank you very much to who can help me

@LombardiDaniel
Copy link

I've ran into this issue today, while trying to run it on my Pi4. I have never built a package, how should I do it? Just run the makefile? And after that, how would I tell docker to use it?

@glensc
Copy link

glensc commented Mar 3, 2021

to build simple:

docker build -t vieux/docker-volume-sshfs:armhf https://github.com/vieux/docker-volume-sshfs/raw/v1.4/Dockerfile

Edit: need to clone repo, as otherwise source is missing:

git clone https://github.com/vieux/docker-volume-sshfs -b v1.4
cd docker-volume-sshfs
docker build -t vieux/docker-volume-sshfs:armhf .

but how to enable using that docker image?

@mzramna
Copy link

mzramna commented Sep 5, 2021

https://docs.docker.com/engine/extend/#:~:text=Creating%20the%20plugin,up%20in%20docker%20plugin%20ls%20.
here explains how to do the compilation,btw using exactaly this repo as sample

i did exactaly this commands to work:

git clone https://github.com/vieux/docker-volume-sshfs 
cd docker-volume-sshfs 
sudo docker build -t rootfsimage .
id=$(sudo docker create rootfsimage true) 
sudo mkdir -p myplugin/rootfs
sudo docker export "$id" | sudo tar -x -C myplugin/rootfs 
sudo docker rm -vf "$id" 
sudo docker rmi rootfsimage 
sudo cp ./config.json ./myplugin/ 
sudo docker plugin create vieux/docker-volume-sshfs:armhf {directory where i did the git clone}/docker-volume-sshfs/myplugin/ 
sudo docker plugin enable vieux/docker-volume-sshfs:armhf

the docker acepted the plugin install exactaly how it should,docker-compose also accepted ,but remembering i gave the name "vieux/docker-volume-sshfs:armhf" to the plugin,you could change it too,you also has to use this name when setting up everyting related to this volume driver,as create a volume by command line or create it using the docker compose or any orquestrator

@mzramna
Copy link

mzramna commented Oct 22, 2021

i've figured out that could happend an problem at the build due to not all armhf boards support the time64,to solve this you have to change the alpine into the Dockerfile version to 3.12.3 since this works,since i've done this and worked,i didnt tried a better solution,but could exists

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

6 participants