OpenR on NCS5500
2 4 月, 2019 No Comments »
For detail info, please refer to following Akshat’s article, for my article only simply summary step to build openr on ncs5500. Thanks Akshat’s help for the openr set up 🙂
1. Set up the private insecure registry on your server
Refer as follow:
https://docs.docker.com/registry/deploying/
[root@nso ~]# nano /etc/yum.repos.d/docker.repo [root@nso ~]# yum install docker-engine [root@nso ~]# systemctl start docker [root@nso ~]# docker run -d -p 5000:5000 --restart=always --name registry registry:2 [root@nso ~]# docker pull akshshar/openr-xr [root@nso ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c4636568f48a registry:2 "/entrypoint.sh /e..." 6 minutes ago Up 6 minutes 0.0.0.0:5000->5000/tcp registry [root@nso ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE registry 2 f32a97de94e1 13 days ago 25.8MB akshshar/openr-xr latest b51c260b060e 2 months ago 1.76GB [root@nso ~]# docker tag akshshar/openr-xr 10.75.58.72:5000/openr-xr [root@nso ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE registry 2 f32a97de94e1 13 days ago 25.8MB akshshar/openr-xr latest b51c260b060e 2 months ago 1.76GB 10.75.58.72:5000/openr-xr latest b51c260b060e 2 months ago 1.76GB [root@nso ~]# docker push 10.75.58.72:5000/openr-xr The push refers to a repository [10.75.58.72:5000/openr-xr] Get https://10.75.58.72:5000/v1/_ping: http: server gave HTTP response to HTTPS client [root@nso ~]#
2. Add follow at “/etc/sysconfig/docker”
After changing the docker opts, please wait some seconds, docker will auto restart.
DOCKER_OPTS=" --insecure-registry 10.75.58.72:5000"