[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,
C#/.NET 系统优化专题(redis第六篇 数据结构【List】)TypeScript中的数据类型这一篇就够了python获取excel的一列或者一行的数据[work] python读取txt文件最后一行(精华)2020年7月15日 微信小程序 组件Component的使用(精华)2020年6月26日 C#类库 异常处理帮助类Vue el-select 获取label值作弊器开发商致歉(精华)2020年8月15日 redis数据库 StackExchange.Redis中Set类型(C#版)Vue页面跳转传递参数及接收