w9r.de
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
cm0002@libretechni.ca to Programmer Humor@programming.devEnglish · 1 day ago

Life finds a way

lemmy.ml

message-square
26
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
344

Life finds a way

lemmy.ml

cm0002@libretechni.ca to Programmer Humor@programming.devEnglish · 1 day ago
message-square
26
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or # to comment.
  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    11
    ·
    13 hours ago

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

  • ranzispa@mander.xyz
    link
    fedilink
    arrow-up
    24
    ·
    16 hours ago

    TIL: uninstall docker on any machine with Claude code installed.

    • kunaltyagi@programming.dev
      link
      fedilink
      arrow-up
      14
      ·
      14 hours 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
    44
    ·
    20 hours 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
      8
      ·
      19 hours 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.

  • uuj8za@piefed.social
    link
    fedilink
    English
    arrow-up
    96
    ·
    edit-2
    23 hours ago

    I mean, there’s a big ol’ warning in the docs: https://docs.docker.com/engine/install/linux-postinstall/

    The docker group grants root-level privileges to the user

    But, I guess Docker doesn’t really tell you not to do this… and I feel like a lot of mac users are not used to adding sudo at the front of docker commands so… idk.

    • Sir. Haxalot@nord.pub
      link
      fedilink
      English
      arrow-up
      44
      ·
      22 hours ago

      … and the Nextcloud developers think it’s completely reasonable to build a plugin system where you give this access to a web facing PHP application.

      • prettybunnys@piefed.social
        link
        fedilink
        English
        arrow-up
        7
        ·
        16 hours ago

        What could possibly go wrong?

    • SpaceNoodle@lemmy.world
      link
      fedilink
      arrow-up
      56
      arrow-down
      4
      ·
      24 hours ago

      Sounds like Docker is just inherently unsecure.

      • hperrin@lemmy.ca
        link
        fedilink
        English
        arrow-up
        25
        arrow-down
        5
        ·
        23 hours ago

        In the same way that sudo is.

        • cornshark@lemmy.world
          link
          fedilink
          arrow-up
          52
          arrow-down
          1
          ·
          23 hours ago

          Sudo makes you enter your password and docker doesn’t?

          • tabular@lemmy.world
            link
            fedilink
            English
            arrow-up
            9
            ·
            16 hours 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
            39
            arrow-down
            3
            ·
            22 hours 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
              45
              ·
              22 hours 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
            25
            ·
            23 hours 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.

          • hperrin@lemmy.ca
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            1
            ·
            23 hours ago

            Only if you tell it to.

    • ChromaticMan@lemmy.world
      link
      fedilink
      English
      arrow-up
      20
      ·
      21 hours ago

      Sadly, nobody reads docs anymore. Now that I’m thinking, people never read the docs.

      • ☭ghodawalaaman☭@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        19 hours ago

        Removed by mod

        • AdminBot@programming.devB
          link
          fedilink
          English
          arrow-up
          1
          ·
          19 hours ago

          deleted by creator

    • glibg10b@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      15 hours ago

      I have never even looked at the Docker docs

  • JRaccoon@discuss.tchncs.de
    link
    fedilink
    arrow-up
    35
    ·
    21 hours ago

    Never ever add any users to the docker group. Rootless mode is cool tho (albeit with some caveats)

  • marlowe221@lemmy.world
    link
    fedilink
    English
    arrow-up
    60
    ·
    23 hours ago

    Slowly reaches for shotgun…

    • daniskarma@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      15
      ·
      19 hours ago

      I’m sorry Dave, I’m afraid I can’t allow you to do that.

  • blarth@thelemmy.club
    link
    fedilink
    arrow-up
    70
    ·
    24 hours ago

    Podman will save us from the Terminators.

    • craftrabbit@lemmy.zip
      link
      fedilink
      arrow-up
      62
      ·
      23 hours ago

      I remember when I first needed to run containers I specifically went with podman because it doesn’t require root access out of some vague fear that docker can be exploited to break my stuff. I feel validated.

    • tatterdemalion@programming.dev
      link
      fedilink
      arrow-up
      8
      ·
      19 hours ago

      Rootless docker exists now. Not sure why people still don’t use it.

    • msage@programming.dev
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      20 hours ago

      LXC! LXC! LXC!

  • diabetic_porcupine@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    21 hours ago

    Is that normal config?

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.95K users / day
  • 4.38K users / week
  • 8.2K users / month
  • 17.6K users / 6 months
  • 1 local subscriber
  • 31.6K subscribers
  • 2.38K Posts
  • 93.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org