[root@server2 docker1]# rm -f docker-ce-18.03.1.ce-1.el7.centos.x86_64.rpm
docker-ce-18.09.5-3.el7.x86_64.rpm containerd.io-1.2.5-3.1.el7.x86_64.rpm
docker-ce-cli-18.09.5-3.el7.x86_64.rpm [root@server2 docker1]# yum install -y *
[root@server2 docker1]# systemctl start docker [root@server2 images]# docker
load -i registry2.tar [root@server2 images]# docker load -i nginx.tar
014cf8bfcb2d: Loading layer 58.46MB/58.46MB 832a3ae4ac84: Loading layer
53.91MB/53.91MB e89b70d28795: Loading layer 3.584kB/3.584kB Loaded image:
nginx:latest [root@server2 images]# docker run -d --name registry -p 5000:5000
-v /opt/registry:/var/lib/registry registry:2 [root@server2 images]# ll
/var/run/docker.sock srw-rw---- 1 root docker 0 Jun 2 16:06
/var/run/docker.sock [root@server2 images]# chmod 777 /var/run/docker.sock
[root@server2 images]# su - jenkins [root@server2 images]# vim /etc/sudoers 92
jenkins ALL=(ALL) NOPASSWD: ALL

新建docker任务

[kiosk@foundation24 demo]$ vim Dockerfile FROM nginx COPY index.html
/usr/share/nginx/html [kiosk@foundation24 demo]$ vim index.html
[kiosk@foundation24 demo]$ git add Dockerfile [kiosk@foundation24 demo]$ git
add index.html [kiosk@foundation24 demo]$ git commit -m "add dockerfile"
[master 87dbecb] add dockerfile 2 files changed, 4 insertions(+) create mode
100644 Dockerfile [kiosk@foundation24 demo]$ git push -u origin master Counting
objects: 6, done. Delta compression using up to 4 threads. Compressing objects:
100% (2/2), done. Writing objects: 100% (4/4), 404 bytes | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0) To git@172.25.24.1:root/demo.git
95b0c55..87dbecb master -> master Branch master set up to track remote branch
master from origin.
在网页上查看172.25.24.2

技术
©2019-2020 Toolsou All rights reserved,
python中delete怎么用_python中如何使用np.delete()方法?大厂Java岗春招必看:论一个面渣逆袭之路上必学得那些知识点3 4j不是合法的python表达式_3+4j不是合法的Python表达式。SQL综合题 员工单位综合题pyqt按钮调用python程序_PyQt:链接按钮到程序中的函数找出游戏的获胜者(java)看完这个去面试,稳过~~将硬盘转换成GPT分区格式python常用内置函数C语言(猜数字小游戏)