• 0 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: August 3rd, 2023

help-circle


  • excitingburp@lemmy.worldtoSelfhosted@lemmy.worldWhat's the deal with Docker?
    link
    fedilink
    English
    arrow-up
    25
    arrow-down
    1
    ·
    edit-2
    10 months ago

    For your use case, consider it to be a packaging format (like AppImage, Flatpak, Deb, RPM, etc.) that includes all the dependencies (including services, not just libraries) for the app in question.

    Should I change this?

    If it’s not broken don’t fix it.

    Use Podman (my preferred - the SystemD approach is awesome), containerd, or Incus. Docker is a graveyard of half-finished pet projects that have no reason for existing. Podman has a Docker-compatible socket, so 100% of Docker tooling will work with it.













  • Alternatively,

    NYT: hey chatgpt complete “copyrighted thing”.

    Chatgpt: “something else”.

    NYT: hey chatgpt complete “copyrighted thing” in the style of .

    Chatgpt: “something else”.

    NYT: (20th new chat) hey chatgpt complete “copyrighted thing” in the style of .

    Chatgpt: “copyrighted thing”.

    Boils down to the infinite monkeys theorem. With enough guidance and attempts you can get ChatGPT something either identical or “sufficiently similar” to anything you want. Ask it to write an article on the rising cost of rice at the South Pole enough times, and it will eventually spit out an article that could have easily been written by a NYT journalist.





  • it would not turn into a gas at normal conditions.

    It does: https://en.wikipedia.org/wiki/Vapor_pressure. In an airtight container you would have an equilibrium of alcohol vapor and liquid. In open-atmosphere, the atmosphere basically behaves like an infinitely large volume for the vapor - so the alcohol will completely vaporize (and cool the surface it is on in order to do so).

    It’s also trivial to demonstrate by pouring alcohol onto a surface, it disappears in seconds. Same with gasoline and numerous other liquids you’ve surely seen do this (another example is hand sanitizer, which is basically pure alcohol).

    Being diluted doesn’t really help with any of this though. Also alcohol is kept in bottles, which are usually airtight until they are first opened.


  • Don’t learn Docker, learn containers. Docker is merely one of the first runtimes, and a rather shit one at that (it’s a bunch of half-baked projects - container signing as one major example).

    Learn Kubernetes, k3s is probably a good place to start. Docker-compose is simply a proprietary and poorly designed version of it. If you know Kubernetes, you’ll quickly be able to pick up docker-compose if you ever need to.

    You can use buildah bud (part of the Podman ecosystem) to build containerfiles (exactly the same thing as dockerfiles without the trademark). Buildah can also be used without containerfiles (your containerfiles simply becomes a script in the language of your choice - e.g. bash), which is far more versatile. Speaking of Podman, if you want to keep things really simple you can manually create a bunch of containers in a pod and then ask Podman to create a set of systemd units for you. Podman supports nearly all of what docker does (with exception to docker’s bjorked signing) and has identical command line syntax. Podman can also host a docker-compatible socket if you need to use it with something that really wants docker.

    I’m personally a big fan of Podman, but I’m also a fan of anything that isn’t Docker: LXD is another popular runtime, and containerd is (IIRC) the runtime underpinning docker. There’s also firecracker or kubevirt, which go full circle and let you manage tiny VMs like containers.