TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Steam in Docker

194 pointsby arno1almost 9 years ago

16 comments

fasterthanlimealmost 9 years ago
Interesting approach! I work on the itch.io app (functionality overlaps the Steam client somewhat, but with a different content offering &#x2F; different way of running things) and we do address both concerns:<p><pre><code> * app isn&#x27;t tied to &#x2F; doesn&#x27;t assume a Debian-ish distribution (we ship .deb, .rpm, a PKGBUILD, and a simple binary .tar.xz) * app uses firejail on Linux (sandbox-exec on macOS, different user on Windows) to &quot;set up more fences around&quot; games you download from the internet. </code></pre> There&#x27;s a bunch more features we want to add to the app (live video capture, see itchio&#x2F;capsule on github, synced collections, etc.) — but isolating &quot;downloaded apps&quot; from the rest of the system seemed like a sensible prerequisite on the road to doing that.<p>I don&#x27;t want to spam links, but if you&#x27;re interested in our approach, you can probably search &quot;itch.io sandbox&quot; with your favorite search engine and stumble upon it :)
评论 #12242556 未加载
评论 #12243082 未加载
评论 #12246169 未加载
cryptarchalmost 9 years ago
Is this meant to make uninstalling Steam easier than it is now?<p>Or is this an exercise in getting GUI applications with slightly exotic features (GPU access) to run?<p>I&#x27;d like to understand why this was made but it isn&#x27;t described in the usage instructions.
评论 #12242361 未加载
notthemessiahalmost 9 years ago
I made a separate user for using Steam (and other games), and it involved a little bit of routing when it comes to X11 and PulseAudio. My reason for doing so was primarily because of how games create many dotfiles, and I wanted my home folder clean.
评论 #12243657 未加载
评论 #12244758 未加载
voltagex_almost 9 years ago
This is hardcoding driver versions: <a href="https:&#x2F;&#x2F;github.com&#x2F;arno01&#x2F;steam&#x2F;blob&#x2F;master&#x2F;docker-compose.yml" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;arno01&#x2F;steam&#x2F;blob&#x2F;master&#x2F;docker-compose.y...</a><p>Is there a better way?
评论 #12242310 未加载
ingenteralmost 9 years ago
I&#x27;m running steam in a systemd container, the main issues were sound and notifications: I don&#x27;t understand how pulseaudio works, so I had to give share some system directories with the guest system to get the sound working. Notifications were solved by sharing dbus. GPU was shared by sharing a single directory in &#x2F;dev with correct persmissions
评论 #12243078 未加载
castratikronalmost 9 years ago
Why would I want to do this?
评论 #12242278 未加载
评论 #12242368 未加载
评论 #12242325 未加载
oDotalmost 9 years ago
Steam is exactly the kind of software that should be distributed using Flatpak[0].<p>[0] <a href="http:&#x2F;&#x2F;flatpak.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;flatpak.org&#x2F;</a>
评论 #12287725 未加载
评论 #12244632 未加载
chrisperalmost 9 years ago
Why use docker instead of something like flatpak or snap?
评论 #12245962 未加载
评论 #12242945 未加载
em3rgent0rdralmost 9 years ago
I use this on an otherwise free-software-only system (Parabola&#x2F;Trisquel), since the only proprietary software I ever use is games, so I try as hard to isolate proprietary code as much as possible (without performance loss, which happens with VMs). This sort of goes with point &quot;1. I want to set-up more fences when running the code I don&#x27;t&#x2F;can&#x27;t trust;&quot;
mastazialmost 9 years ago
How is the GUI accessed? X11 socket sharing? Because I guess that for gaming both X11 over SSH and VNC would not perform very well...
评论 #12246309 未加载
shmerlalmost 9 years ago
I proposed the same idea for GOG and their Linux games a few years ago. At that time they didn&#x27;t get the point.
评论 #12243668 未加载
marcosnilsalmost 9 years ago
Been there, done that. Here&#x27;s a video where I run Counter Strike through steam in a docker container.<p><a href="https:&#x2F;&#x2F;youtu.be&#x2F;ZHWsR8TnKsw?t=801" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;ZHWsR8TnKsw?t=801</a><p>PS: Audio is in spanish.
评论 #12244177 未加载
rlpbalmost 9 years ago
How does persistent state work with this? For example, what happens to my saved games? What if I update the image (for example to pick up a Steam update)? What will happen to those saved games?
评论 #12247154 未加载
评论 #12243855 未加载
skrowlalmost 9 years ago
How is the performance on this compared to a bare metal install?<p>IE how many FPS do you get with a native Steam install vs Dockerized Steam on the same hardware?
评论 #12247464 未加载
Hurtakalmost 9 years ago
How big is the % FPS decrease if you run the game inside container, compared to just running it regularly?
评论 #12243053 未加载
lhlmgralmost 9 years ago
Could this improve or worsen the VAC mechanism?
评论 #12247128 未加载