Skip to content

horjulf/docker-sshfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-sshfs

Mount SSHFS on the host with a container.

Command executed in the container:

  • sshfs -f ${SSHFS_HOST} ${SSHFS_MNT} ${SSHFS_OPTS}

Usage

docker create --name=sshfs \
    -e PUID=<uid> \
    -e PGID=<gid> \
    -e TZ=<timezone> \
    -e SSHFS_HOST="<user>@<host>:<path>" \
    -e SSHFS_OPTS="-p <port> -o IdentityFile=/config/<ssh_key> -o noatime -o reconnect" \
    --cap-add=SYS_ADMIN \
    --device=/dev/fuse \
    -v <config_path>:/config \
    -v <mnt_path>:/mnt:shared \
    horjulf/sshfs
docker start sshfs

Releases

No releases published

Packages

No packages published