connect ssh driver volume on lxplus
So the trick to using sshfs along with docker compose is:
Install the plugin for sshfs
docker plugin install vieux/sshfs sshkey.source=/root/.ssh/
The /root/.ssh/ part is crutial and it will not work if ssh keys are anywhere else than this exact path (!!!) You need to put the keys inside /root/.ssh/, and then add the following stub ti the docker-compose:
volumes:
data:
driver: "vieux/sshfs:latest"
driver_opts:
IdentityFile: "/root/.ssh/id_rsa"
sshcmd: "mwm@192.168.1.56:/home/mwm/dockersshtest"
allow_other: ""
Source: https://github.com/vieux/docker-volume-sshfs/issues/58
Edited by Maciej Witold Majewski