在docker容器安装Jenkins

2018-03-21  本文已影响0人  kribeel
  1. 环境准备
    • docker
    • Linux

2.步骤

➜  ~ docker pull jenkins
Using default tag: latest
latest: Pulling from library/jenkins
c73ab1c6897b: Pull complete 
1ab373b3deae: Pull complete 
b542772b4177: Pull complete 
57c8de432dbe: Pull complete 
da44f64ae999: Pull complete 
0bbc7b377a91: Pull complete 
Digest: sha256:93263adb6ab1ecb240b342a9e62e782c5b46d4d87cd01830021d1dfe89acb518
Status: Downloaded newer image for jenkins:latest
➜  ~ 
➜  ~ 
➜  ~ docker images
REPOSITORY                   TAG                 IMAGE ID            CREATED             SIZE
jenkins                      latest              7b210b6c238a        15 hours ago        801MB
➜  data mkdir jenkins
➜  data cd jenkins 
➜  jenkins pwd
/home/deepin/soft/data/jenkins
➜  data docker run -p 8008:8080 -v /home/deepin/soft/data/jenkins:/var/jenkins_home --name jenkins_c -d jenkins 
60cc22760faefffd6aa98e55938d15e48a2063cc0878c7653eed43cbb5ab71a7
➜  data 
docker logs $(docker ps -f name=jenkins_c -q)
...
...
    INFO: 

*************************************************************
*************************************************************
*************************************************************

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

bdda710223384081aff3fe2156574e69

This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************
上一篇下一篇

猜你喜欢

热点阅读