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

Unable to lchown volume #73

Open
kovalev94 opened this issue Sep 22, 2019 · 1 comment
Open

Unable to lchown volume #73

kovalev94 opened this issue Sep 22, 2019 · 1 comment

Comments

@kovalev94
Copy link

kovalev94 commented Sep 22, 2019

Hello. I have centos 7.7 on 2 servers. I successfully creates volume with this command:

[lanadmin@mordred ~]$ docker volume create --driver vieux/sshfs -o [email protected]:/home/test -o password=mypass sshvolume

But when i tries to use this volume in container i have an error like this:

[lanadmin@mordred ~]$  docker run -it -v sshvolume:/etc busybox ls /etc
docker: Error response from daemon: failed to copy file info for /var/lib/docker/plugins/518a1874166cf493dd0700d9efec1c3e2d7649cb4a560d44a2af1a6aa16f0526/propagated-mount/5cd59d97ef5e801349f7c06a8f2c113d: failed to chown /var/lib/docker/plugins/518a1874166cf493dd0700d9efec1c3e2d7649cb4a560d44a2af1a6aa16f0526/propagated-mount/5cd59d97ef5e801349f7c06a8f2c113d: lchown /var/lib/docker/plugins/518a1874166cf493dd0700d9efec1c3e2d7649cb4a560d44a2af1a6aa16f0526/propagated-mount/5cd59d97ef5e801349f7c06a8f2c113d: permission denied.
See 'docker run --help'.

Also if i tries to use empty directory everything work fine.

And the most funny thing is when i put some file in /home/test there is no error with coping files when container runs and i have this files in /home/test:

lanadmin@ganimed ~]$ ls -lah /home/test/
итого 8,0K
drwxrwxrwx. 2 lanadmin   lanadmin   4,0K сен 21 23:15 .

drwxr-xr-x. 5 root     root     4,0K сен 21 18:48 ..

-rwxr-xr-x. 1 lanadmin lanadmin    0 сен 21 23:15 hostname

-rwxr-xr-x. 1 lanadmin lanadmin    0 сен 21 23:15 hosts

-rw-rw-r--. 1 lanadmin lanadmin    0 сен 21 23:14 notest.file

-rwxr-xr-x. 1 lanadmin lanadmin    0 сен 21 23:15 resolv.conf

@GRX
Copy link

GRX commented Apr 6, 2020

Did you manage to solve this?

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

2 participants