docker build -t oreng/iojs .
INFO[0000] Get https://index.docker.io/v1/repositories/library/iojs/images: x509: certificate signed by unknown authority.
my Dockerfile is
FROM iojs:latest
RUN useradd -ms /bin/bash developer
WORKDIR /home/developer
USER developer
Also hub create
(using https://github.com/github/hub)
Post https://api.github.com/user/repos: x509: certificate signed by unknown authority
As mentioned in
crypto/x509/root_unix.go
, Go (which is what Docker uses) will check CA certificates inMake sure those files are available and not corrupted.
There can be also sporadic issue with the CDN, as in this comment:
The last thread also includes the following check:
Regarding GitHub, be aware it is under a massive DDoS attack at the moment, which could have other side-effects beside the certificate issue.
In Ubuntu 16.04 , should work with other versions as well
Create/copy .crt under /usr/local/share/ca-certificates;
And then run
This will add the certificate under "/etc/ssl/certs/ca-certificates.crt" and then restart docker