-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
cannot bind mount in container #65
Comments
Please don't just paste some logs into an issue. Especially not when they contain markdown directives. Put the logs between tripple backticks: ``` to let the logs render in a nice way. |
I actually found the issue |
Currently it has the bind option supported as per the code. Can you check whether your new directory is created inside your rootfs ? if err := createIfNotExists(dest, stat.IsDir()); err != nil { |
It is failing in the following call during the mount |
I could solve the problem via the code by adding MS_BIND or modify container.json to include option bind.. |
@InformatiQ On *nix systems, you need to specify @rajasec Please don't post large swathes of code in comments. Please either reference the code lines or just make a PR for review. |
that works fine for me |
trying to start a container with a bind mount
it failes with error
this is the added part apart from the default spec + user modification
{
"type": "bind",
"source": "/home/user",
"destination": "/home/user",
"options": ""
}
The text was updated successfully, but these errors were encountered: