Skip to content

Commit 88a476e

Browse files
authored
docs: Disk pass-through (#240)
1 parent 08255c5 commit 88a476e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/maste
191191
- 'c *:* rwm'
192192
```
193193

194+
### How do I pass-through a disk?
195+
196+
It is possible to pass-through disk devices or partitions directly by adding them to your compose file in this way:
197+
198+
```yaml
199+
devices:
200+
- /dev/sdb:/disk1
201+
- /dev/sdc1:/disk2
202+
```
203+
204+
Use `/disk1` if you want it to become your main drive, and use `/disk2` and higher to add them as secondary drives.
205+
194206
### How do I pass-through a USB device?
195207

196208
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:

0 commit comments

Comments
 (0)