[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 删除。