Skip to content

Instantly share code, notes, and snippets.

@m-x-k
Created December 30, 2016 09:06
Show Gist options
  • Save m-x-k/38bba7188bbb79931f895c77cfac6fec to your computer and use it in GitHub Desktop.
Save m-x-k/38bba7188bbb79931f895c77cfac6fec to your computer and use it in GitHub Desktop.
Debian docker private registry access setup
Go to private repository in browser (e.g. https://<PRIVATE_REG>:5000/v2/_catalog)
Download the certificate (e.g. View Cerificate > Details > Export (PEM format))
Copy crt certificate to: /usr/local/share/ca-certificates/
sudo update-ca-certificates --verbose
systemctl restart docker
Confirm it all works by trying to pull down a docker image from the private registry:
(e.g. docker pull <PRIVATE_REG>:5000/my/image)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment