1、构建时出错:(命令和输出如下)
[root@ct ~]# docker run -p 5000:5000 registry:2
Unable to find image 'registry:2' locally2: Pulling from library/registry
81033e7c1d6a: Pull complete
b235084c2315: Pull complete
c692f3a6894b: Pull complete
ba2177f3a70e: Pull complete
a8d793620947: Pull complete
Digest: sha256:feb40d14cd33e646b9985e2d6754ed66616fedb840226c4d917ef53d616dcd6c
Status: Downloaded newer image for registry:2
time="2018-03-29T03:25:33Z" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.7.6 instance.id=5ddb630e-1852-4ee6-8103-e0f1c37796d1 version=v2.6.2
time="2018-03-29T03:25:33Z"