LoginSignup
6
6

More than 5 years have passed since last update.

dockerでゲームを音付きで動かせたのでYouTubeにUPしました

Last updated at Posted at 2015-05-22

ubuntu 15.04 + LivaPC

音はPulseAudioで他の端末から音を出すで出した。

YouTube

ビデオが開けなかった場合に表示されるテキスト

全オプション

docker run \
 -it \
 --rm \
\
 --net=host \
 -v /etc/localtime:/etc/localtime:ro \
\
 -e DISPLAY \
 -v ~/.Xauthority:/root/.Xauthority \
\
 -e PULSE_SERVER=tcp:$(hostname -i):4713 \
\
 --privileged \
 -v /var/lib/dbus:/var/lib/dbus \
\
 private/games

多分 --device=/dev/input/js0:/dev/input/js0 でジョイスティック使える。

以下指定したら体感3倍早くなった。

 --privileged \
 -v /var/lib/dbus:/var/lib/dbus \

感想

ホストで動かした時のほうが早いが、ホストが十分早ければそこまで問題ないと思います。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6