docker 提示:来自守护程序的错误响应:获取 https://registry-1.docker.io/v2/: x509: certificate is valid for

docker hint: Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate is valid for

当我使用命令时:docker pull ubuntu:16.04

我得到这个错误:

liudecai@my-ubuntu-server:~$ docker pull ubuntu:16.04
Error response from daemon: Get https://registry-1.docker.io/v2/: x509: certificate is valid for FG3K6C3A15800021, not registry-1.docker.io

我用的是Ubuntu服务器16.04,docker版本是17.03.1-ce

docker 资料:

Client:
 Version:      17.03.1-ce
 API version:  1.27
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:14:09 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.03.1-ce
 API version:  1.27 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   c6d412e
 Built:        Mon Mar 27 17:14:09 2017
 OS/Arch:      linux/amd64
 Experimental: false

我该如何解决这个问题?

这个步骤对我来说很有效:

https://github.com/moby/moby/issues/33154

https://docs.docker.com/v1.13/engine/admin/systemd/#http-proxy