docs: Disk pass-through (#240)

This commit is contained in:
Kroese 2025-04-03 10:31:29 +02:00 committed by GitHub
parent 08255c5a45
commit 88a476ef4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -191,6 +191,18 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/maste
- 'c *:* rwm'
```
### How do I pass-through a disk?
It is possible to pass-through disk devices or partitions directly by adding them to your compose file in this way:
```yaml
devices:
- /dev/sdb:/disk1
- /dev/sdc1:/disk2
```
Use `/disk1` if you want it to become your main drive, and use `/disk2` and higher to add them as secondary drives.
### How do I pass-through a USB device?
To pass-through a USB device, first lookup its vendor and product id via the `lsusb` command, then add them to your compose file like this: