Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Using IdentityFile setting with docker-compose #68

@guysoft

Description

@guysoft

Hey,
How would I do use an IdentityFile setting with docker-compose?
I tried:

  sshdata:
    driver: vieux/sshfs:latest
    driver_opts:
      sshcmd: "ubuntu@host:/path"
      IdentityFile: /home/ubuntu/.ssh/key_file
      allow_other: ""

But did not seem to work

Neither did:

  sshdata:
    driver: vieux/sshfs:latest
    driver_opts:
      sshcmd: "ubuntu@host:/path -o identityfile=/home/ubuntu/.ssh/key_file"
      allow_other: ""

I get:


ERROR: for test_container Cannot start service test_service: error while mounting volume '': VolumeDriver.Mount: sshfs command execute failed: exit status 1 (read: Connection reset by peer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions