containers / skopeo

Work with remote images registries - retrieving information, images, signing content
Apache License 2.0
8.12k stars 769 forks source link

Skopeo default cert path #1976

Closed dcdh closed 1 year ago

dcdh commented 1 year ago

When I am doing a skopeo copy I've got this in my debug log:

DEBU[0000] Looking for TLS certificates and private keys in /etc/docker/certs.d/container-registry.lab.stack:5000 

How can I setup my env to make skopeo using this directory by default: /etc/containers/certs.d/container-registry.lab.stack:5000

It should be already the case but I do not know why it is not :(

I guess /etc/docker/cert.d is the default path.

Who is in charge to defined and so how to define it ?

I am using a Rocky Linux 9 with only podman (for creating a private registry), skopeo and httpd-tools

dcdh commented 1 year ago

I reply to myself. By default it will look on /etc/containers/cert.d/ ... if it could not find the registry it will not log and look forward into /etc/docker/cert.d ... on my side I make a mistake in directory naming. No log about the registry not found inside /etc/containers/cert.d ... maybe it should be nice to add a log about it .

mtrmac commented 1 year ago

Thanks for the update.

Care to propose a PR improving the debug logs? We might not want an individual debug log entry for all attempted directories, but maybe a single line showing what was tried and failed, and what was selected, would make sense.

mtrmac commented 1 year ago

(That would be a PR in the https://github.com/containers/image repo.)