Repository navigation
Closed
Labels
enhancementNew feature or request
Description
With docker I had my certificates in ~/.docker/certs.d/host:port/{ca.crt, client.cert, client.key}. After moving these to /etc/docker/certs.d/host:port/.. in the lima machine, nerdctl recognises them and I was able to login to the registry (nerdctl login ..). Before moving the files, I got an 400 Error when trying to login ..
pulling images from this private (gitlab) registry is still not possible:
$ nerdctl --debug-full pull $PRIVATE_REGISTRY:5000/web/docker-web:latest
DEBU[0000] rootless parent main: executing "/usr/bin/nsenter" with [-r/ -w/home/dennis.linux --preserve-credentials -m -n -U -t 832 -F nerdctl --debug-full pull $PRIVATE_REGISTRY:5000/web/docker-web:latest]
DEBU[0000] fetching image="$PRIVATE_REGISTRY:5000/web/docker-web:latest"
DEBU[0000] resolving host="$PRIVATE_REGISTRY:5000"
DEBU[0000] do request host="$PRIVATE_REGISTRY:5000" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=containerd/1.5.0+unknown request.method=HEAD url="https://$PRIVATE_REGISTRY:5000/v2/web/docker-web/manifests/latest"
DEBU[0000] fetch response received host="$PRIVATE_REGISTRY:5000" response.header.content-length=237 response.header.content-type=text/html response.header.date="Tue, 12 Oct 2021 13:51:41 GMT" response.header.server=nginx/1.17.8 response.status="400 Bad Request" url="https://$PRIVATE_REGISTRY:5000/v2/web/docker-web/manifests/latest"
FATA[0000] failed to resolve reference "$PRIVATE_REGISTRY:5000/web/docker-web:latest": pulling from host $PRIVATE_REGISTRY:5000 failed with status code [manifests latest]: 400 Bad RequestMy assumption is, that nerdctl does not send the client certificate when trying to pull .. any ideas?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
AkihiroSuda commentedon Oct 12, 2021
Support for /etc/docker/certs.d is unimplemented (yet)
ds82 commentedon Oct 13, 2021
That means, there is currently no way to use client certificates or is there a workaround?
AkihiroSuda commentedon Oct 13, 2021
If you install the certs to the store of Linux, probably it should work
https://www.google.com/search?q=ubuntu++install+client+certificate
apostasie commentedon Jul 30, 2024
@AkihiroSuda is this still true?
From a quick read of containerd remotes/docker, it looks like we get client certificates for free with
ConfigureHostsif they are configured in hosts.toml in either docker or containerd roots?AkihiroSuda commentedon Jul 30, 2024
Right, hosts.toml should work now