This Dockerfile creates a container with SSHFS installed to mount a remote directory over SSH.
To build the Docker image, run the following command from the root directory of this project:
docker build -t <image-name> .
To run the container, use the following command:
docker run --privileged \
-v /path/to/id_ed25519:/root/.ssh/id_ed25519:ro \
-e SERVER_ADDRESS=<server-address> \
-e REMOTE_USER=<remote-user> \
-e REMOTE_DIRECTORY=<remote-directory> \
-e MOUNT_POINT=<mount-point> \
--name wabit-sshfs \
-d <image-name>
Make sure to replace <image-name>, <container-name>, <local-mount-point>, <server-address>, <remote-user>, and <remote-directory> with your own values. Also, replace /path/to/id_ed25519 with the path to your private key file on your local machine
The container uses the following environment variables:
If any of these environment variables are not provided, the container will not start.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Content type
Image
Digest
sha256:250fcd2d5…
Size
7 MB
Last updated
over 3 years ago
docker pull wabit/sshfs