Skip to content

Commit 0784cb9

Browse files
committed
updating the README
1 parent 11ea605 commit 0784cb9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ RUN apk add --no-cache \
2323

2424
USER mpv
2525

26-
WORKDIR /home/mpv
26+
WORKDIR /home/mpv/media
2727

2828
VOLUME ["/home/mpv/media"]
2929

30-
CMD ["mpv"]
30+
CMD ["ash"]

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
# mpv
1+
# How to use this image
2+
3+
## Start an MPV instance
24

35
```sh
4-
docker run --rm \
6+
docker run --rm -i -t \
57
--device /dev/dri \
68
--network host \
79
--shm-size 2g \
810
-e DISPLAY=$DISPLAY \
911
-v /etc/machine-id:/etc/machine-id:ro \
1012
-v /run/user/1000/pulse:/run/user/1000/pulse \
1113
-v $HOME/.Xauthority:/home/mpv/.Xauthority \
14+
-v /path/to/your/media/:/home/mpv/media:ro \
1215
mpv
1316
```
17+
18+
where `/path/to/your/media` is the directory of the media files that you want to play.

0 commit comments

Comments
 (0)