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

Not able to mount volume #16

Open
harshadyeola opened this issue Feb 18, 2017 · 6 comments
Open

Not able to mount volume #16

harshadyeola opened this issue Feb 18, 2017 · 6 comments

Comments

@harshadyeola
Copy link

 ~/ docker run -it -v sshvolume:/test alpine /bin/bash                                          
docker: Error response from daemon: error while mounting volume '/var/lib/docker/plugins/05647629ba318eab7bbfefe53d539119d15b643e544a6733ee52bf148b4d0b3f/rootfs/mnt/volumes/d7cff4f370f7f8976e3335ab03398cae': VolumeDriver.Mount: exit status 1.
@JoooostB
Copy link

Did you find a way to resolve this issue?

@chrsch
Copy link

chrsch commented May 28, 2017

I had a similar problem and for me it was related to special chars in my password. Changed the chars to alpha num only and it worked.

@kevinniu666
Copy link

ssh key has been deployed between all my nodes, still could not to mount

[root@docker1 sshvol]# docker run -it -d --mount source=sshvol,target=/app --name nginx2 nginx
4a1ae8f60590f04cbe550e6886d141395dccd967dd00480eeed9481ce62e4a67
docker: Error response from daemon: error while mounting volume '/var/lib/docker/plugins/e20216d1fb0581a24ef37eebfd456ce6960ca1db9a8a8bcdfe9416a5dbe4c36d/rootfs/mnt/volumes/8c29dac168f3a393bdcfd6ed6946466f': VolumeDriver.Mount: exit status 1.

[root@docker1 sshvol]# docker volume inspect sshvol
[
{
"Driver": "vieux/sshfs:latest",
"Labels": {},
"Mountpoint": "/mnt/volumes/8c29dac168f3a393bdcfd6ed6946466f",
"Name": "sshvol",
"Options": {
"sshcmd": "root@docker2:/sshvol"
},
"Scope": "local"
}
]

@xkrt
Copy link

xkrt commented Sep 14, 2017

I ran into the same issue. Docker logs:

dockerd[17313]: time="2017-09-14T10:24:49Z" level=info msg="time=\"2017-09-14T10:24:49Z\" level=debug msg=\"[sshfs -oStrictHostKeyChecking=no myuser@myhost:/ /mnt/volumes/39fbbe77a9b705e594944495b8b1c31f -p 2222 -o workaround=rename -o password_stdin]\"" plugin=85bd109b6dd33fbc80fd569a4cc2ddf252bcba0086b0d67a7e423a9e00dbe9c1
dockerd[17313]: time="2017-09-14T10:24:49Z" level=info msg="time=\"2017-09-14T10:24:49Z\" level=error msg=\"exit status 1\"" plugin=85bd109b6dd33fbc80fd569a4cc2ddf252bcba0086b0d67a7e423a9e00dbe9c1
dockerd[17313]: time="2017-09-14T10:24:49.970997223Z" level=error msg="Handler for POST /v1.29/containers/0bc3d38ac9a87306faf10a6597a75b7305cb25ab2c71e974ca273ed84effa921/start returned error: error while mounting volume '/var/lib/docker/plugins/85bd109b6dd33fbc80fd569a4cc2ddf252bcba0086b0d67a7e423a9e00dbe9c1/rootfs': VolumeDriver.Mount: exit status 1%!(EXTRA []interface {}=[])"

But if I run on host machine same command everything is fine:

echo mypassword | sshfs -oStrictHostKeyChecking=no myuser@myhost:/ ./sftp/ -p 2222 -o workaround=rename -o password_stdin

I think may be plugin should write stdout+stderr of sshfs command to debug log, this may help.

Host OS: CentOs 7.3.1611
Docker version: 17.05.0-ce
Plugin version: 85bd109b6dd3 vieux/sshfs:latest

@xkrt
Copy link

xkrt commented Sep 15, 2017

UPD: the problem was in old mod_sftp on server, my admin update it and all works fine now.

@Gerrel
Copy link

Gerrel commented Nov 30, 2017

Using: https://hub.docker.com/r/atmoz/sftp/
But get the error VolumeDriver.Mount: exit status 1%!(EXTRA []interface {}=[]).
~~Updated the apk packages in the container, but still not working!? ~~
(From macosx command line and Cyberduck it is working properly)

Volume: sshfs:latest storage
Running: docker run -it -v storage:/data busybox ls /
Result: docker: Error response from daemon: error while mounting volume
'/mnt/volumes/f3cc2093662a7de6ee98e7a1f47edf7e': VolumeDriver.Mount: exit status 1%!(EXTRA
[]interface {}=[]).

Got it working.... was using http://, but an IP does not need that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants