diff --git a/docs/docker.md b/docs/docker.md index d8f4ff8..453c245 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -31,4 +31,18 @@ Test if the image was created successfully: docker run -it mvt ``` -If a prompt is spawned successfully, you can close it with `exit`. \ No newline at end of file +If a prompt is spawned successfully, you can close it with `exit`. + +## Access an iOS device from Docker + +On the Linux host, install and start [usbmuxd](https://github.com/libimobiledevice/usbmuxd), then connect and unlock the iOS device. The daemon exposes the device through the `/var/run/usbmuxd` socket. + +Bind that socket into the container to let MVT communicate with the device: + +```bash +docker run -it \ + --mount type=bind,source=/var/run/usbmuxd,target=/var/run/usbmuxd \ + ghcr.io/mvt-project/mvt +``` + +If you built the image from source, replace `ghcr.io/mvt-project/mvt` with `mvt`.