snippets/docker/Install vieux-sshfs docker driver
2024-10-03 01:47:38 +02:00

13 lines
427 B
Bash

#!/bin/bash
git clone https://github.com/vieux/docker-volume-sshfs
cd docker-volume-sshfs/
docker build -t rootfsimage .
cd ..
mkdir -p docker-volume-sshfs/rootfs
id=$(docker create rootfsimage true)
sudo docker export "$id" | sudo tar -x -C docker-volume-sshfs/rootfs
docker rm -vf "$id"
docker rmi rootfsimage
sudo docker plugin create vieux/sshfs docker-volume-sshfs/
docker plugin enable vieux/sshfs:latest
docker plugin ls