You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Watchtower with access to the Docker socket (/var/run/docker.sock) and trying to pull images from a private GitLab registry secured with a self-signed certificate (gitlab.lan:5005).
Despite mounting the correct certs and seeing debug logs like this:
Built challenge URL" URL="https://gitlab.lan:5005/v2/"
Reason: Get "https://gitlab.lan:5005/v2/": x509: certificate signed by unknown authority
…the image pull still fails.
Here's what I’ve done so far:
Copied gitlab.lan.crt to /etc/docker/certs.d/gitlab.lan_5005/ca.crt on the host.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm running Watchtower with access to the Docker socket (
/var/run/docker.sock
) and trying to pull images from a private GitLab registry secured with a self-signed certificate (gitlab.lan:5005
).Despite mounting the correct certs and seeing debug logs like this:
…the image pull still fails.
Here's what I’ve done so far:
gitlab.lan.crt
to/etc/docker/certs.d/gitlab.lan_5005/ca.crt
on the host.- /etc/docker/certs.d/gitlab.lan_5005:/etc/docker/certs.d/gitlab.lan:5005
/etc/docker/certs.d/gitlab.lan:5005/ca.crt
exists and is readable.DOCKER_HOST
,DOCKER_CERT_PATH
, or--tlsverify
.Question:
update-ca-certificates
inside the container, or is there a better way to inject CA trust?/etc/docker/certs.d
?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions