• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle
  • fishpen0@lemmy.worldtoSelfhosted@lemmy.worldWhat is Docker?
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 hours ago

    Yes, technically chroot and jails are wrappers around kernel namespaces / cgroups and so is docker.

    But containers were born in a post chroot era as an attempt at making the same functionality much more user friendly and focused more on bundling cgroups and namespaces into a single superset, where chroot on its own is only namespaces. This is super visible in early docker where you could not individually dial those settings. It’s still a useful way to explain containers in general in the sense that comparing two similar things helps you define both of them.

    Also cgroups have evolved alongside containers at this point and work rather differently now compared to 18 years ago when cgroups were invented and this differentiation mattered more than now. We’re at the point where differentiation between VMs and Containers is getting really hard since both more and more often rely on the same kernel features that were developed in recent years on top of cgroups


  • fishpen0@lemmy.worldtoSelfhosted@lemmy.worldWhat is Docker?
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 hours ago

    A million times this. A major difference between the way most vms are run and most containers are run is:

    VMs write to their own internal disk, containers should be immutable and not be able to write to their internal filesystem

    You can have 100 identical containers running and if you are using your filesystem correctly only one copy of that container image is on your hard drive. You have have two nearly identical containers running and then only a small amount of the second container image (another layer) is wasting disk space

    Similarly containers and VMs use memory and cpu allocations differently and they run with extremely different security and networking scopes, but that requires even more explanation and is less relevant to self hosting unless you are trying to learn this to eventually get a job in it.


  • My wife and I were forced to travel for work for some years and it was absolutely worth it to have a remote programmable thermostat. The number of times we were able to fix the temperature setting after it turned out we were both gone and the heat or AC was left on by accident saved us, in all likelihood, thousands of dollars.

    Similarly once we got in the groove with that we started renting the place when we’d both be gone for long stretches of time and we were able to remote control prevent things like a guest turning the AC on in the late fall and letting the compressor freeze or just leaving the heat on after they checked out.

    I know piling on an unpopular opinion by claiming it is a solution to other unpopular lifestyle choices isn’t what Lemmy is usually looking for, but yeah they serve a really valuable purpose to some of us.

    I’m sure when our kids are teenagers and fucking with the thermostat all the time I’ll appreciate it all over again.