snippets/docker/Install vieux-sshfs docker driver

13 lines
427 B
Plaintext
Raw Normal View History

2024-10-02 23:47:38 +00:00
#!/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