Because I hate Electron

56 points

Docker, Distrobox, Toybox, systemd-nspawn, chroot.

Technically those all rely on the same kernel namespace features, just different ways to use it.

That’s also what Flatpaks and Snaps do. If you only care about package bloat, an AppImage would do too but it’s not a sandbox like Flatpak.

permalink
report
reply
9 points

Don’t use docker with distrobox. Use podman instead as it is rootless and faster

permalink
report
parent
reply
1 point

Docker for servers and Rodman for home pcs

permalink
report
parent
reply
1 point

Podman goes well with Kubernetes. It also is more performant than docker.

I use both

permalink
report
parent
reply
33 points
*

IIRC that’s the whole point of flatpak, snap and appimage

Docker can probably do it too, distrobox puts a useful wrapper on that

Nix does that kind of, nix packages aren’t isolated in that they can’t access resources on your system but all dependencies are stored in the nix store, hashed and isolated from eachother, and wiped when you collect garbage

permalink
report
reply
1 point

Appimage doesn’t do deduplication of packages does it?

permalink
report
parent
reply
2 points

No, I apparently missed that but

Nix is the best solution anyway imo

permalink
report
parent
reply
20 points

Snap turns your system into a slug at boot time, makes it take forever to shut down as it unmounts fifty memory file systems, scatters files all over the place turning a neat organized system into a pile of shit. I primary run Ubuntu, but I excise snap from it as one of the first orders of business.

permalink
report
reply
13 points

At that point, why still bother with Ubuntu?

permalink
report
parent
reply
4 points

@naeap As long as it remains the easiest distro for me to get from initial setup to mangled the way I want it to work I’ll stick with Ubuntu. It still tends to be more up to date than most other releases save Fedora but I do not care for the Redhat approach at all, they are rather like Windows in trying to force you to do it there way, “thou shall use LDAP and not NIS” for example. I don’t like distros that think I should change my whole organization to suit their needs. Yea at some point I probably will switch to LDAP but will do it on my own terms in my own time not dictated by a distribution vendor. It is rather trivial for me to excise snap from Ubuntu, a lot more work to hack NIS into a system that doesn’t natively support it.

permalink
report
parent
reply
7 points

Luckily I use Arch (btw) so every Linux apps under the sun already available on the AUR, so I have 0 reason to use Snap/Flatpak

permalink
report
parent
reply
4 points

Isn’t firefox strickly snapped in latest ubuntus?

permalink
report
parent
reply
9 points

@0x0 No, Mozilla maintains their own repository. You can delete snap firefox and snap everything else, add the mozilla repository, and install firefox from there. You’ll get a more current version as a side benefit. Instructions found here: askubuntu.com/questions/150203…

permalink
report
parent
reply
17 points

Yes

That’s called containerization

permalink
report
reply
13 points

Go with one of the ready to use systems. Flatpak, Snap, AppImage. Snap is largely Ubuntu Ecosystem, Flatpak is independent. AppImage is an option if you do not need/want a Sandbox.

Stay away from Docker and LXC for this use case (graphical applications), they are much more work to get going.

permalink
report
reply
3 points

Yes, Docker apps are more appropriate for servers and most apps are “made” to run 24/7 to serv the home or workplace.

They are very much worth the “work to setup” as they can be transfered/replicated to any system.

Flatpak and the alike are for running apps on a desktop/laptop.

permalink
report
parent
reply
2 points

Agreed. My answer was in the assumption that it’s about desktop apps as the OP mentioned Electron.

permalink
report
parent
reply
2 points
*

You can just use podman+distrobox

Simple and rootless

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.4K

    Monthly active users

  • 6.6K

    Posts

  • 180K

    Comments