-
|
Docker Hardened Images are now free and available to all users, which is great news. They solve several long-standing pain points for me, especially running as non-root by default, reducing image size, and improving security posture overall. After starting to use DHI more seriously, I ran into two issues that I’d like to get feedback on from the Docker team. I’m not sure whether these are expected design decisions or just current limitations. 1. Authentication is still required to pull DHI imagesEven though Docker Hardened Images are now free and publicly available, pulling them still requires logging in. This becomes inconvenient during image builds, especially in CI environments like GitHub Actions, where additional authentication steps are required. For many open-source or public projects, this extra friction may discourage adoption of DHI. Is this authentication requirement intentional, and is there any plan to allow unauthenticated pulls for regular users in the future? 2.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
+1 on allowing unauthenticated pulls |
Beta Was this translation helpful? Give feedback.
-
|
@palemoky, thanks for taking the time to put this feedback here. Really appreciate it. Let me respond to your questions. Authentication RequirementsYou’re right that authentication is currently required to pull DHIs. It's important to differentiate DHI OSS from Hub which is a service Docker runs. Authentication is required to pull from Hub in order to prevent abuse and better improve the experience over time. As an open source contributor and consumer for over two decades, I understand that this might cause friction. We are actively working on mitigating the login friction. Today it's very easy to create an account at https://app.docker.com/signup, even using your Google or GitHub accounts. We are also adding OIDC-based login for GitHub and other CI providers. Timeline TBD but coming soon. Debugging DHILike with any other hardened, shell-less container image, debugging a running DHI might be challenging as you point out. We provide several options to mitigate this:
$ docker run --rm -it -u 0:0 --mount type=image,source=busybox:uclibc,target=/busybox --entrypoint /busybox/bin/sh dhi.io/python:3.13
WARNING: Image mount is an experimental feature
~ #
Hope this helps. cd |
Beta Was this translation helpful? Give feedback.
@palemoky, thanks for taking the time to put this feedback here. Really appreciate it. Let me respond to your questions.
Authentication Requirements
You’re right that authentication is currently required to pull DHIs. It's important to differentiate DHI OSS from Hub which is a service Docker runs. Authentication is required to pull from Hub in order to prevent abuse and better improve the experience over time.
As an open source contributor and consumer for over two decades, I understand that this might cause friction. We are actively working on mitigating the login friction. Today it's very easy to create an account at https://app.docker.com/signup, even using your Google or GitHub accounts.