Linux Containers Forks LXD Project As "Incus" - eviltoast
  • jecxjo@midwest.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    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.

    • InvertedParallax@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      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.

      • jecxjo@midwest.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

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

        • InvertedParallax@lemm.ee
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          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.

          • jecxjo@midwest.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            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.

              • jecxjo@midwest.social
                link
                fedilink
                English
                arrow-up
                2
                ·
                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.