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

How do I mount IB devices on docker #55

Open
shuiyihang opened this issue Mar 3, 2025 · 1 comment
Open

How do I mount IB devices on docker #55

shuiyihang opened this issue Mar 3, 2025 · 1 comment

Comments

@shuiyihang
Copy link

No description provided.

@baijing0818
Copy link

docker run --privileged --device=/dev/infiniband:/dev/infiniband -it 3fs-build

--privileged 能够确保容器拥有足够的权限访问底层设备。
如果不想完全使用 --privileged,可以尝试添加相关的 capability,比如 IPC_LOCK 或其他需要的权限:

docker run --cap-add=IPC_LOCK --device=/dev/infiniband:/dev/infiniband -it 3fs-build

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

No branches or pull requests

2 participants