-
Notifications
You must be signed in to change notification settings - Fork 121
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 pass --device=/dev/disk3 on macOS into Linux Docker? #3110
Comments
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
+1 :) Docker: Client: Server: macOS 10.14 Mojave |
Not sure if I can do this, but since this is still an issue (experiencing it myself with stable and edge): /remove-lifecycle stale |
Hello, Sorry for the late answer. As the daemon runs inside a VM in Docker Desktop, it is not possible to actually share a mac host device with the container inside the VM, and this will most definitely never be possible. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Wontfix. Wow. Ok. But what about a small alert when using this? |
Well... I've spent a little time on this and came to this thread. Soon after I found it was on documentation. +1 On advising user that it cannot be done on mac/windows |
FWIW, I also lost about an hour of my life to finding this. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
I'd like to pass
/dev/disk3
device into Docker, so I'm running the following command:or:
then I expect to have access to this device inside the container, so it can be mounted (as
ext4
in this case).Actual behavior
Another attempt:
The device is present on the macOS host:
but it's not present in the container after passing through
--device
parameter.Information
It's reproducible each time.
Diagnostic logs
No errors reported in the logs
Steps to reproduce the behavior
docker run -it --device=/dev/disk3 --privileged ubuntu bash
(where/dev/disk3
is your device number on the host).Related
The text was updated successfully, but these errors were encountered: