this post was submitted on 09 Aug 2023
94 points (98.0% liked)

Technology

58303 readers
11 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago (1 children)

I use it all the time, similar to how I use jails on my FreeBSD systems. Basically when I need to compartmentalize an app I launch a new instance of Alpine and install the app.

As an example I have a container that has my VPN software and a browser that I know is a clean room.

I run Gentoo as my main distro and sometimes a package is distributed only as a deb with very specific version dependencies I can't build. So I spin up a base Debian container and install the app. If it's X11 I can launch it into my current session and if it's console then I can always mount my home directory as a network share.

[–] [email protected] 2 points 1 year ago (1 children)

Use lxc same way, works well, used lxd that way once or twice but with a decent lxc script it worked that way.

Agreed on jails, lxc finally brought that functionality to linux.

[–] [email protected] 2 points 1 year ago (1 children)

With the addition of Alpine Linux containers are now barely bigger than the application itself.

[–] [email protected] 0 points 1 year ago (1 children)

Yeah, on bsd jails are basically shared because of zfs, I should use more alpine, but more complex applications often need something closer to debian, and my alpine fu isn't very good yet.

We really, REALLY need a dockerfile for lxc so you call lxc-build and it pulls and compiles/configures everything for you automatically.

Thats the dream.

[–] [email protected] 2 points 1 year ago (1 children)

I want to look into NixOS. They basically have a one file config and install for your entire system. Wonder how well it works in lxc.

[–] [email protected] 1 points 1 year ago (1 children)

I wouldn't want Nixos as my base, but yeah, it sounds like the ultimate lxc base.

[–] [email protected] 2 points 1 year ago

Sadly my daily driver is getting pretty old and slow so i typically dont put big distros on lxc. Maybe NixOS can he configured to be super slim. New weekend project.