-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman pull doesn't use default --cert-dir as indicated in the manual #10116
Comments
That should be fixed with #10147. |
Thanks for the issue, @micah ! |
Apologies for not going back to the issue before, @micah. While we need to update the I am going to close the issue and prepare a follow-up PR to massage the man pages. |
Point to containers-certs.d(5) for details on the default paths, the lookup logic and the structure of these directories. Previously, the man pages stated that the default path would be in `/etc/containers/...` which is not entirely and a red herring for users (see containers#10116). Signed-off-by: Valentin Rothberg <[email protected]>
Point to containers-certs.d(5) for details on the default paths, the lookup logic and the structure of these directories. Previously, the man pages stated that the default path would be in `/etc/containers/...` which is not entirely and a red herring for users (see containers#10116). Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg this issue seems not solved flags.StringVar(&pullOptions.CertDir, certDirFlagName, "/etc/containers/certs.d", "`Pathname` of a directory containing TLS certificates and keys") |
@jonyhy96, https://github.com/containers/image/blob/main/docker/docker_client.go#L65-L68 is the place to look at. |
Helps Document containers#10116 Signed-off-by: Daniel J Walsh <[email protected]>
Helps Document containers#10116 Signed-off-by: Daniel J Walsh <[email protected]>
/kind bug
Description
The manual page for podman pull details this option:
however, it doesn't appear that
--cert-dir=/etc/containers/certs.d
is actually the default for this command.Steps to reproduce the issue:
Create a registry with a certificate signed by a private CA (for example by deploying https://github.com/rpardini/docker-registry-proxy)
put the CA certificate in /etc/containers/certs.d/additional.crt
attempt to pull from that registry
try again, but this time pass
-certs-dir=/etc/containers/certs.d
to the pull commandDescribe the results you received:
I have a CA cert in
/etc/containers/certs.d/additional.crt
and podman pull, without the flag specified, complains about the validity of the x509 certificate:Describe the results you expected:
If I pass manually
--cert-dir=/etc/containers/certs.d
then the pull does manage to validate the certificate and pull properly:I would expect that I would not need to pass
--cert-dir
as this is supposedly the default option.Additional information you deem important (e.g. issue happens only occasionally):
I also see no place where I can configure this option as a default other than having to put it in every pull command.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: