How to mount a device of host to host in a Docker container?.How do I access a USB drive on an OSX host from inside a Docker container?.Here is the device which I'm trying to add to the container (as reported on macOS): $ diskutil list /dev/disk3ĭisk: /dev/disk3 geometry: 121601/255/63 Ls: cannot access '/dev/sdb*': No such file or directory Here is another attempt: $ docker run -it -device=/dev/disk3:/dev/sdb -privileged ubuntu bash Ls: cannot access '/dev/disk3': No such file or directoryĭisk /dev/sda: 59.6 GiB, 63999836160 bytes, 124999680 sectorsĭevice Boot Start End Sectors Size Id Type I've connected external HDD via USD on macOS, and I'm running Ubuntu's Docker container as: docker run -it -device=/dev/disk3 -privileged ubuntu bashīut the device is not present in the container: # ls /dev/disk3
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |