• Re: [Debian Wiki] Update of "Docker" by BordenRhodes

    From Tianon Gravi@21:1/5 to [email protected] on Sat Jul 5 05:00:01 2025
    On Fri, Jul 4, 2025, 19:30 Debian Wiki <[email protected]> wrote:

    The "Docker" page has been changed by BordenRhodes: https://wiki.debian.org/Docker?action=diff&rev1=40&rev2=41

    Comment:
    Moving Podman plug into security warning. Consider making its own section.


    Docker has no equivalent to `sudo`'s password check, so an arbitrary-code-execution exploit against a user in the `docker` group effectively grants the attacker root access. Therefore, the safer choice
    is to __''never''__ add a user account — even your own — to the `docker` group, so that Docker commands can only be used via `sudo`.

    + If Docker running at root level is an unacceptable security risk,
    consider [[Podman]] instead, which provides similar functionality but runs without root privileges.
    +
    See also [[https://docs.docker.com/go/attack-surface/|"Docker daemon
    attack surface" in the upstream documentation]] for more details.
    }}}


    Instead of a reference to Podman in an article about Docker, this should mention running Docker in "rootless" mode: https://docs.docker.com/engine/security/rootless/

    (Podman should stick to articles about Podman.)

    ❤️,
    - Tianon

    <div dir="auto"><div dir="auto">On Fri, Jul 4, 2025, 19:30 Debian Wiki &lt;<a href="mailto:[email protected]" rel="noreferrer noreferrer" target="_blank">[email protected]</a>&gt; wrote:</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote"
    style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
    The &quot;Docker&quot; page has been changed by BordenRhodes:<br>
    <a href="https://wiki.debian.org/Docker?action=diff&amp;rev1=40&amp;rev2=41" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://wiki.debian.org/Docker?action=diff&amp;rev1=40&amp;rev2=41</a><br>

    Comment:<br>
    Moving Podman plug into security warning. Consider making its own section.<br>


      Docker has no equivalent to `sudo`&#39;s password check, so an arbitrary-code-execution exploit against a user in the `docker` group effectively grants the attacker root access.  Therefore, the safer choice is to __&#39;&#39;never&#39;&#39;__ add a
    user account — even your own — to the `docker` group, so that Docker commands can only be used via `sudo`.<br>

    + If Docker running at root level is an unacceptable security risk, consider [[Podman]] instead, which provides similar functionality but runs without root privileges.<br>
    + <br>
      See also [[<a href="https://docs.docker.com/go/attack-surface/%7C" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://docs.docker.com/go/attack-surface/|</a>&quot;Docker daemon attack surface&quot; in the upstream documentation]]
    for more details.<br>
      }}}<br></blockquote></div><div dir="auto"><br></div><div dir="auto">Instead of a reference to Podman in an article about Docker, this should mention running Docker in &quot;rootless&quot; mode: <a href="https://docs.docker.com/engine/security/
    rootless/">https://docs.docker.com/engine/security/rootless/</a></div><div dir="auto"><br></div><div dir="auto">(Podman should stick to articles about Podman.)</div><div dir="auto"><br></div><div dir="auto">❤️,</div><div data-smartmail="gmail_
    signature">- Tianon</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Borden@21:1/5 to All on Sat Jul 5 05:50:01 2025
    4 Jul 2025, 22:39 by [email protected]:

    Instead of a reference to Podman in an article about Docker, this should mention running Docker in "rootless" mode: > https://docs.docker.com/engine/security/rootless/

    (Podman should stick to articles about Podman.)

    Point well taken. I leave it as a plug until I can write intelligently about it. Thank you for the documentation link.

    For such a mature project, I'm rather disappointed with Docker documentation. A lot of it reads more like advertising than actual usage documentation.

    Anyone else is welcome to change my work. The article when I discovered it made a non-sequitur reference to Podman, so I just moved it to a place where I think it makes more sense. However, I agree with your reasoning. That's what categories are for.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)