account:chenqmc
openssl req -newkey rsa:4096 -nodes -sha256 -keyout ${HOSTNAME}.key -x509 -days 365 -out ${HOSTNAME}.crt
vim /etc/docker/daemon.json
{"registry-mirrors": ["http://187193f5.m.daocloud.io"]}
拉取registry
docker pull registry
启动registry
docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
将镜像进行tag打包,传入本地镜像
[root@www1 ~]# docker tag 471e783ffeca 127.0.0.1:5000/mdc-cas
[root@www1 ~]# docker push 127.0.0.1:5000/mdc-cas