Giter Club home page Giter Club logo

Comments (7)

tianon avatar tianon commented on August 16, 2024

I'm not sure whether it's related to your problem or not, but you absolutely do not want to run Steam with --privileged=true, ever. When you run a container with --privileged=true, you've stripped away almost all the protections Docker provides against that container doing unexpected (and extremely harmful!) things, so at that point you might as well install Steam on your host instead (and run it as root, because that's the level of privilege you're giving to it).

Running with the simplified docker run -it --rm --device /dev/dri -v /tmp/.X11-unix:/tmp/.X11-unix:ro --ipc host -e DISPLAY tianon/steam bash, and then running steam, letting it download/start, then exiting, then running steam again, it works just fine, so I'm not able to reproduce.

from dockerfiles.

janesma avatar janesma commented on August 16, 2024

Thank you for looking at this. I really appreciate the helpful information.

On my Debian-Testing host system (intel icelake, linux 5.9.0, gnome/wayland, Docker 1.5), I still reproduce the same failure, using your invocation. My colleague verified that your invocation works properly on his Arch Linux host.

There must be some aspect of my host that is causing this issue. I'm going to install a fresh system to verify that I can get your image working on stock debian testing.

from dockerfiles.

janesma avatar janesma commented on August 16, 2024

correction. Debian apt reports Docker as:
docker/testing,testing,unstable,unstable,now 1.5-2 all [installed]

Docker reports its version as:
Docker version 19.03.13, build 4484c46

from dockerfiles.

tianon avatar tianon commented on August 16, 2024

The docker package in APT is definitely not the one you want -- you should do something like dpkg -S dockerd to figure out the package name you have installed (it's likely either docker-ce or docker.io).

I'm just guessing, but I imagine Wayland is probably related -- I have not done any testing of using Wayland (or XWayland) inside containers, and I have no idea what that will require (I use Xfce in X11 for all my Linux "desktop" machines).

from dockerfiles.

janesma avatar janesma commented on August 16, 2024

It was my mistake to report the docker version. I installed docker.io which reported the 19.03.13 version. I verified that a clean install of debian-testing reproduces the behavior. I also tested with Gnome/X11 and Xfce.

In reading the output of the crashed steam client carefully, I noticed that the last message before the crash is "Proceed to auto login". It turns out that the crash only occurs when I check "Remember my password" when logging in to steam the first time.

To work around the failure:
rm ~/.local/share/Steam/config/config.vdf

from dockerfiles.

tianon avatar tianon commented on August 16, 2024

I still can't reproduce -- my Steam launches and successfully performs the auto-login both the first and second time. 😞

(I go further and mount a persistent home directory into my Steam containers so even if I recreate the container it will still launch with the same config and auth every time.)

from dockerfiles.

janesma avatar janesma commented on August 16, 2024

sorry for the frustration. I don't think it is important to root cause this issue, because I can easily work around it. Hopefully this issue will be found in a web search by the next person that encounters a similar crash.

from dockerfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.