前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Docker 中构建 Jenkins2

Docker 中构建 Jenkins2

作者头像
franket
发布2022-01-21 10:07:36
2910
发布2022-01-21 10:07:36
举报
文章被收录于专栏:技术杂记技术杂记

构建镜像

代码语言:javascript
复制
[root@docker build]# docker  build -t  ci-infrastructure/jnkns-img  . 
Sending build context to Docker daemon 9.728 kB
Step 1 : FROM jenkins
 ---> fc39417bd5fb
Step 2 : COPY plugins /usr/share/jenkins/plugins
 ---> 0139ec49d08d
Removing intermediate container a9f6f1ead720
Step 3 : RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins
 ---> Running in 1cab523a28c9
Downloading role-strategy:2.2.0
 ---> b65ed720a699
Removing intermediate container 1cab523a28c9
Step 4 : COPY docker.crt /var/lib/jenkins/cert
 ---> aa2257cc683d
Removing intermediate container 7f72a7d983b1
Step 5 : COPY docker.key /var/lib/jenkins/pk
 ---> 0e692408d048
Removing intermediate container b0bfe48b921b
Step 6 : ENV JENKINS_OPTS --httpPort=-1 --httpsPort=1973 --httpsCertificate=/var/lib/jenkins/cert --httpsPrivateKey=/var/lib/jenkins/pk
 ---> Running in 7ae0ddd5277e
 ---> c384253964b5
Removing intermediate container 7ae0ddd5277e
Successfully built c384253964b5
[root@docker build]# echo $?
0
[root@docker build]# docker images 
REPOSITORY                    TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
ci-infrastructure/jnkns-img   latest              c384253964b5        15 seconds ago      708.2 MB
<none>                        <none>              d34c985f0918        15 hours ago        292.7 MB
<none>                        <none>              9287fae7a16e        32 hours ago        169.3 MB
ubuntu                        latest              8693db7e8a00        7 days ago          187.9 MB
docker-registry:5000/ubuntu   latest              8693db7e8a00        7 days ago          187.9 MB
docker:5000/ubuntu            latest              8693db7e8a00        7 days ago          187.9 MB
h103:5000/ubuntu              latest              8693db7e8a00        7 days ago          187.9 MB
localhost:5000/ubuntu         latest              8693db7e8a00        7 days ago          187.9 MB
192.168.100.104:5000/ubuntu   latest              8693db7e8a00        7 days ago          187.9 MB
h104:5000/ubuntu              latest              8693db7e8a00        7 days ago          187.9 MB
localhost:5000/myfirstimage   latest              8693db7e8a00        7 days ago          187.9 MB
jenkins                       latest              fc39417bd5fb        2 weeks ago         708.1 MB
registry                      2                   683f9cd9cf88        3 weeks ago         224.5 MB
hello-world                   latest              0a6ba66e537a        3 months ago        960 B
[root@docker build]# 

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 构建镜像
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档