Getting run time error trying to run hello world package on centos OS

docker: Error while pulling image: Get https://index.docker.io/v1/repositories/l ibrary/centos/images: x509: certificate is valid for FG3K6C3A13800607, not index .docker.io.