Skip to content

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

About

Mirror of https://gitlab.com/horjulf/docker-sshfs

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages