SteamOS icon indicating copy to clipboard operation
SteamOS copied to clipboard

SteamOS3 - please include Docker or OverlayFS to make services like cups available

Open derpelikan opened this issue 2 years ago • 9 comments

Docker and/or OverlayFS could be great expansion solutions for SteamOS while keeping the rootfs valid. On a failed boot, the integration could just be deactivated. Dockerd could even be deactivated in GameUI, so installed services don't interfere with the experience. With proper Docker integration, optional services like cups could be managed by users. With full OverlayFS even pacman could be used.

derpelikan avatar Apr 01 '22 16:04 derpelikan

This is a very good Idea! I would also like to be able to use cups and support for docker containers could be really amazing.

hftl-kalle avatar Apr 01 '22 17:04 hftl-kalle

Docker (or Podman) support would be nice, since you could use a tool like toolbox or distrobox to use development tools without disabling the read-only filesystem.

nogeenkopjethee avatar Apr 09 '22 15:04 nogeenkopjethee

Yep we need this !

SaulGoodman1337 avatar Apr 16 '22 20:04 SaulGoodman1337

Dockerd could even be deactivated in GameUI, so installed services don't interfere with the experience.

Docker has support for socket activation, so with:

sudo systemctl disable docker.service
sudo systemctl enable docker.socket

it will only start on demand.

dos1 avatar Apr 28 '22 21:04 dos1

+1 for docker. Also it should be configured in a way that images and containers survive OS updates. Must have for linux enthusiasts, power users and developers.

zhulik avatar May 01 '22 19:05 zhulik

Docker containers already survive OS updates, you just have to re-install docker itself each time you update.

dos1 avatar May 02 '22 04:05 dos1

Podman would be a better fit than Docker because you don't need an additional service running nor root priveleges.

alkazar avatar May 24 '22 21:05 alkazar

Just here to agree that I'd love to see Podman shipped with SteamOS3, particularly for use with Distrobox so that we can easily create mutable "pet containers" on top of the stable base system. This would open up a lot of possibilities for advanced Linux users on SteamOS.

(Docker would also work, but I agree that Podman is really a better fit due to being daemonless and not requiring root to use.)

emmetoneillpdx avatar Jun 05 '22 03:06 emmetoneillpdx

Please add support for podman on steamos. Podman + distrobox allows for nearly limitless expansion without people needing to unlock the base os. This would be an absolute gamechanger. I agree with the later sentiment that specifically podman would be a better fit for this rather than docker. As a bonus it would be nice to also have distrobox installed by default, but once podman is installed people could just install distrobox manually.

xrishox avatar Aug 24 '22 18:08 xrishox

We need this! Docker + Podman or just either support in SteamOS out of the box would be so highly appreciated. FYI: Docker can also run rootless (https://docs.docker.com/engine/security/rootless/)

xPathin avatar Oct 09 '22 04:10 xPathin

I made an AppImage of podman if you need a portable way to containerize things: https://github.com/popsUlfr/podman-appimage

In the past I wrote about a manual fakeroot way to get another environment working on the Steam Deck: https://gitlab.com/popsulfr/steam-deck-tricks#use-podman-to-create-a-steamosarch-development-image In the meantime I put the AppImage together to make everything much easier (includes btrfs driver support, automatically sets up the storage if it detects it's on btrfs [see steamos-btrfs project])

popsUlfr avatar Oct 17 '22 12:10 popsUlfr

One possible way to add services like cups without touching the rootfs is with systemd-sysext, which is already available, there are some instructions here.

Probably Podman can also be installed using this method.

bertogg avatar Feb 24 '23 14:02 bertogg

FYI the latest SteamOS 3.5 main image comes with podman and distrobox preinstalled (the usual warnings apply: main images are unstable and untested, use at your own risk, etc.).

bertogg avatar Sep 08 '23 10:09 bertogg

@bertogg amazing news, thanks for letting us know!

zhulik avatar Sep 08 '23 12:09 zhulik

Thank you for providing Podman!

It's currently in version 4.5.1. Is there a way to update it to 4.7 so we can use podman compose?

https://stackoverflow.com/a/77448532/9737275

rafrafek avatar Jan 20 '24 17:01 rafrafek

Hi @rafrafek, the packages are updated periodically so there will definitely be a new version of Podman in a future software update. I cannot really tell when that will be, though.

If you really want to have it now I suppose you can try installing Podman using Nix, the single-user installation mode should just work (https://nixos.org/download) but there might be interactions with the Podman that comes with the system, I haven't tested that.

bertogg avatar Jan 30 '24 07:01 bertogg

Since SteamOS 3.5 is already shipping Podman I think that we can close this issue.

bertogg avatar Jan 30 '24 07:01 bertogg