Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rootless docker can not bind mount an overlay directory #41544

Open
weynhamz opened this issue Oct 10, 2020 · 2 comments
Open

Rootless docker can not bind mount an overlay directory #41544

weynhamz opened this issue Oct 10, 2020 · 2 comments

Comments

@weynhamz
Copy link

weynhamz commented Oct 10, 2020

Description

I have a directory that is an overlay filesystem in my HOME directory.

As a normal user, I can access this overlay directory without any problem on the host machine.

Then, I try to bind mount this overlay directory into a rootless docker container (run as this normal user), inside the container, the mounted directory is empty.

With global installed Docker, the mount is working fine.

Output of docker version:

# Global Docker
docker --version
Docker version 19.03.13, build 4484c46
# Rootless Docker
docker --version
Docker version 19.03.13, build 4484c46
@weynhamz weynhamz changed the title Rootless docker can not bind mount a overlay directory Rootless docker can not bind mount an overlay directory Oct 10, 2020
@AkihiroSuda
Copy link
Member

Could you try adding —propagation=rslave like this

--propagation=rslave \

@weynhamz
Copy link
Author

Just tried, no luck, still empty.

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

No branches or pull requests

3 participants