Skip to content

Instantly share code, notes, and snippets.

@euikook
Created October 8, 2018 05:02
Show Gist options
  • Save euikook/8a60f63d69386b0b7c9b716c5a973d0d to your computer and use it in GitHub Desktop.
Save euikook/8a60f63d69386b0b7c9b716c5a973d0d to your computer and use it in GitHub Desktop.
Trust the certificate at the OS level

Trust the certificate at the OS level

Ubuntu

cp certs/domain.crt /usr/local/share/ca-certificates/myregistrydomain.com.crt
update-ca-certificates

RED HAT ENTERPRISE LINUX

cp certs/domain.crt /etc/pki/ca-trust/source/anchors/myregistrydomain.com.crt
update-ca-trust

ORACLE LINUX

update-ca-trust enable

Windows

Open Windows Explorer, right-click the certificate, and choose Install certificate.

Then, select the following options:

  • Store location: local machine
  • Check place all certificates in the following store
  • Click Browser, and select Trusted Root Certificate Authorities
  • Click Finish

Learn more about managing TLS certificates.

After adding the CA certificate to Windows, restart Docker for Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment