• Using official Debian images in podman

    From Enrico Zini@21:1/5 to All on Mon May 12 18:10:01 2025
    Hello,

    I would like to try out podman in Debian, but I would like it to be
    configured to only use officially built Debian images[1].

    By default podman in Debian will not access remote repositories.

    Following the podman page in the Debian wiki[2], I set up `docker.io` as
    a registry, so it can find the images:

    mkdir -p ~/.config/containers
    echo 'unqualified-search-registries=["docker.io"]' > ~/.config/containers/registries.conf

    Now the question is, how do I configure podman to only download trusted
    images?

    I have a thing that I don't want to accidentally run untrusted random
    stuff from the internet: it's great that Debian provides official podman images, and I would like to tell podman to not download anything else
    that I do not trust.

    I'm used to apt having a trusted keyring it uses to validate downloaded packages, and I like it. It seems like podman can do something like
    that, but I'm failing to find the runes to configure it that way.

    Can anyone help me on the way there? In exchange, if it works I'll turn
    my experience into an HOWTO others can use.


    Thanks,

    Enrico

    [1] https://hub.docker.com/_/debian/
    [2] https://wiki.debian.org/Podman
    --
    GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini <enrico@enricozini.org>

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCAAdFiEEzcrDClsZDUbLiHVsQQj4QWUj0N4FAmgiGrgACgkQQQj4QWUj 0N72cQ/+NmOKGT+4rA5l6CvaVh/mep4ldeAC/3sM5sW6LlbiRzV7vRZrOsRwRrRy 6GaQfQVskEg7P3/F+Isxk/0a/ugeC84rcaIOEg191qbsmvcym//8PGoEBbLYa02w 6qw+Yxl4H7g4nfpBhmzLvbJYwiAlGM4swG7B0YRfhaqDIDmaK3JZLhAgIyhHzbC8 +ouzorfOQ7htlP0IlXlUjQ4sG1DkxxKDHXMzpA27IR99btTipLi9z3epw3TPfnFk ZOJ0ZoDLNAXlRQxZy8EDU06YMpIcs9cdlF+6arFqPTW5PVpDCkeeSgMnE1eFLasK c5tbjubsMEdbgNXeRajQqnvHdOjvM0gZjGNMc08qoP/tiZk6A9jzFLS4MoGhvlbr V8rp4crD72+QGImCOft37Dz7JWTwQteZ4gCca7n2dYgGPnrTF5lhK1KBZwu+J9Ws xeukGMmspR7Hlzcq/z6sxFB4gknu22EFniaWzEtIk//rQju+A6O47q1DG1bOiH2j nbFksz97FKpI5gGusXDMuVg2F6uQzy571vxvI/fEKX1mawAVoEec+IrN6YTlAP+3 l/Xll108JMDIxZiPON1SmkedMP2/BnZGozDz82wV75Lamc542Uw/CnGTMc1Xd2SR ZroXZvvMNcBNNbVQSPUGVyFQTpaESx/yglgfC4BfGnxZ0MfdLvo=
    =Kw9p
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?SsOpcsOpbXkgTGFs?=@21:1/5 to All on Mon May 12 19:00:02 2025
    Le lun. 12 mai 2025 à 18:09, Enrico Zini <enrico@enricozini.org> a écrit :

    Hello,

    I would like to try out podman in Debian, but I would like it to be configured to only use officially built Debian images[1].

    By default podman in Debian will not access remote repositories.

    Following the podman page in the Debian wiki[2], I set up `docker.io` as
    a registry, so it can find the images:

    mkdir -p ~/.config/containers
    echo 'unqualified-search-registries=["docker.io"]' > ~/.config/containers/registries.conf

    Now the question is, how do I configure podman to only download trusted images?


    I know it's not what you ask, but I had the same concern, and it ended up
    like this:

    mmdebstrap bookworm bookworm.tar
    podman import bookworm.tar bookworm
    podman run -it bookworm:latest /bin/bash

    voilà !


    I have a thing that I don't want to accidentally run untrusted random
    stuff from the internet: it's great that Debian provides official podman images, and I would like to tell podman to not download anything else
    that I do not trust.

    I'm used to apt having a trusted keyring it uses to validate downloaded packages, and I like it. It seems like podman can do something like
    that, but I'm failing to find the runes to configure it that way.

    Can anyone help me on the way there? In exchange, if it works I'll turn
    my experience into an HOWTO others can use.


    Thanks,

    Enrico

    [1] https://hub.docker.com/_/debian/
    [2] https://wiki.debian.org/Podman
    --
    GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini < enrico@enricozini.org>


    <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Le lun. 12 mai 2025 à 18:09, Enrico Zini &lt;<a href="mailto:enrico@enricozini.org">enrico@enricozini.org</a>&gt; a écrit :<
    </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>

    I would like to try out podman in Debian, but I would like it to be<br> configured to only use officially built Debian images[1].<br>

    By default podman in Debian will not access remote repositories.<br>

    Following the podman page in the Debian wiki[2], I set up `<a href="http://docker.io" rel="noreferrer" target="_blank">docker.io</a>` as<br>
    a registry, so it can find the images:<br>

      mkdir -p ~/.config/containers<br>
      echo &#39;unqualified-search-registries=[&quot;<a href="http://docker.io" rel="noreferrer" target="_blank">docker.io</a>&quot;]&#39; &gt; ~/.config/containers/registries.conf<br>

    Now the question is, how do I configure podman to only download trusted<br> images?<br></blockquote><div><br></div><div>I know it&#39;s not what you ask, but I had the same concern, and it ended up like this:</div><div><br></div><div>mmdebstrap bookworm bookworm.tar</div><div>podman import bookworm.tar bookworm</div><div>podman
    run -it bookworm:latest /bin/bash</div><div><br></div><div>voilà !</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

    I have a thing that I don&#39;t want to accidentally run untrusted random<br> stuff from the internet: it&#39;s great that Debian provides official podman<br>
    images, and I would like to tell podman to not download anything else<br>
    that I do not trust.<br>

    I&#39;m used to apt having a trusted keyring it uses to validate downloaded<br> packages, and I like it. It seems like podman can do something like<br>
    that, but I&#39;m failing to find the runes to configure it that way.<br>

    Can anyone help me on the way there? In exchange, if it works I&#39;ll turn<br> my experience into an HOWTO others can use.<br>


    Thanks,<br>

    Enrico<br>

    [1] <a href="https://hub.docker.com/_/debian/" rel="noreferrer" target="_blank">https://hub.docker.com/_/debian/</a><br>
    [2] <a href="https://wiki.debian.org/Podman" rel="noreferrer" target="_blank">https://wiki.debian.org/Podman</a><br>
    -- <br>
    GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini &lt;<a href="mailto:enrico@enricozini.org" target="_blank">enrico@enricozini.org</a>&gt;<br>
    </blockquote></div></div>

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