13 lines
427 B
Bash
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 |