• SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    This is your regular reminder that docker isn’t a sandboxing solution and shouldn’t be treated as one.

    • kunaltyagi@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      1 day ago

      This was known for a decade now? That’s why adding a user to docker group was always an additional step with a warning

      And also why podman works the way it does

  • BlueKey@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    2 days ago

    Podman for the rescue. Runs fully under current user pribileges, so no sudo or other root-privileges needed to run containers.
    (Especially useful for devs who want containers but should not get sudo.)

    • GreenKnight23@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 day ago

      there’s just that pesky IBM thing that’s constantly hanging around in the back waiting to pull the rug you’re standing on.

      • Ghoelian@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        12 hours ago

        It’s all open source. If they do that it will just get forked, I don’t really see the issue.

        • GreenKnight23@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          12 hours ago

          keep telling yourself that. if it was 2006 I would say you’re right, but 20 years of corporate neglect and abuse has caused many developers to age out and not really give a shit anymore.

          young devs don’t want to just “fork it”, they want to make a better product. to sell it. to IBM (or entities like them).

          so yeah. you keep trusting that IBM bear in the corner won’t maul you when you take a nap.

          I’ll stick with docker, the solution that outright refused to bend a knee to the worse corporate slaver in modern history.

          • Ghoelian@piefed.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            11 hours ago

            ¯\_(ツ)_/¯ I have faith in the open-source community. So far that’s turned out pretty well.

      • racemaniac@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        13 hours ago

        Suppose we all did read the docs. How possible is it with the complexity of a modern system to really take literally everything in account, and understand the implications oof everything to keep your system safe? It’s great that it’s documented, but if security isn’t the default option, it will lead to issues, and everything has become so complex, that imo correctly managing everything is literally impossible… This is a systemic issue, not a user issue.

          • tabular@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 day ago

            Sudo can/usually does ask for password - but if you’re feeling lucky you can use sudo without a password.

            (Currently doing that after repeatedly failing to install an OS and have not yet felt compelled to change it back).

          • locuester@lemmy.zip
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 days ago

            Docker does by default - it only works if you use sudo. But the docs tell you to add yourself to the docker group (which requires sudo to do). Then running docker doesn’t require sudo anymore.

            • squaresinger@lemmy.world
              link
              fedilink
              arrow-up
              0
              ·
              2 days ago

              Yeah, that’s a terrible decision in the docs. Don’t ever add a path where anything on the shell can execute user-modifyable code as root.

              As soon as you do that, you lose any protection that comes from separating root users and non-root users. Because now any malicious program can just use docker to elevate its code to root.

          • Zikeji@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 days ago

            Or don’t give your user docker and use sudo to use the docker CLI to get the same effect. Hell, you could even alias docker as sudo docker to get the same feel.