use host network so that streaming works

This commit is contained in:
Gautier Pelloux-Prayer 2017-02-09 12:23:05 +01:00
parent 2947cf4e05
commit 8cd14fb63f
3 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,7 @@ RUN ln -sv librtmp.so.1 /usr/lib/x86_64-linux-gnu/librtmp.so.0 && \
# TODO: use debian mirrors if possible?
ADD http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4_i386.deb /tmp/libgcrypt11_i386.deb
ADD http://archive.ubuntu.com/ubuntu/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-2ubuntu4_amd64.deb /tmp/libgcrypt11_amd64.deb
ADD http://ftp.de.debian.org/debian/pool/main/j/json-c/libjson-c3_0.12.1-1.1_amd64.deb /tmp/libjson-c3_amd64.deb
ADD libjson-c3_*_amd64.deb /tmp/libjson-c3_amd64.deb
RUN cd /tmp && \
dpkg -i *.deb && \
rm -f *.deb

View File

@ -3,7 +3,7 @@ version: '2'
services:
steam:
image: andrey01/steam
network_mode: bridge
network_mode: host # it's important to use host network so that streaming works
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro
- /etc/localtime:/etc/localtime:ro
@ -27,7 +27,6 @@ services:
- /usr/X11R6/lib64:/h11_64:ro
- /usr/lib:/h12_32:ro
- /usr/lib64:/h13_64:ro
dns: steam # a DNS cache is needed to avoid upstream bug https://github.com/ValveSoftware/steam-for-linux/issues/3401
devices:
- /dev/nvidia0
- /dev/nvidiactl

Binary file not shown.