Docker安裝和使用(轉)

 (轉)原文地址:http://www.javashuo.com/article/p-cvoyrnra-hb.html

一,安裝Docker

1.1 安裝以前保持一個乾淨的Docker環境javascript

sudo yum remove docker docker-common docker-selinux docker-engine

1.2 安裝一些依賴php

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

1.3 下載repo文件html

wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo

1.4 把軟件倉管地址替換爲 TUNA:java

sudo sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo

1.5 安裝node

sudo yum makecache fast
sudo yum install docker-ce

參考文檔:https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/python

1.6 安裝完成後可使用:dock version 命令查看docker信息linux

[root@linux-node1 ~]#
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:41:23 2017
OS/Arch: linux/amd64git

Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:49 2017
OS/Arch: linux/amd64
Experimental: falsegithub

docker versionweb


複製代碼
[root@linux-node1 ~]# 
Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:41:23 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:42:49 2017
 OS/Arch:      linux/amd64
 Experimental: false
複製代碼

二,安裝docker-compose

2.1 先確認完成docker環境安裝,再執行此步驟

2.2 參考文檔:

https://docs.docker.com/compose/install/

2.3 以CentOS爲例:

       2.3.1下載docker compose執行文件 

sudo curl -L https://github.com/docker/compose/releases/download/1.17.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

      2.3.2 添加執行權限

sudo chmod +x /usr/local/bin/docker-compose

     2.3.3 驗證結果

docker-compose --version
docker-compose version 1.17.0, build 1719ceb

三,下載鏡像文件

3.1 配置國內Docker鏡像加速,國內拉取官方docker鏡像速度較慢

[root@linux-node1 data]# more /etc/docker/daemon.json 
{"registry-mirrors": ["http://4c7d9402.m.daocloud.io"]}

此處須要注意,若是文件 /etc/docker/deamon.json 不存在,能夠本身建立一個文件並將內容複製進去

touch /etc/docker/deamon.json
vi /etc/docker/deamon.json

{"registry-mirrors": ["http://4c7d9402.m.daocloud.io"]}

 

3.2 下載Docker的Cent0S鏡像

[root@linux-node1 ~]# docker pull centos
Using default tag: latest
latest: Pulling from library/centos
d9aaf4d82f24: Pull complete 
Digest: sha256:4565fe2dd7f4770e825d4bd9c761a81b26e49cc9e3c9631c58cfc3188be9505a
Status: Downloaded newer image for centos:latest

3.3 查看鏡像

[root@linux-node1 ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
centos              latest              d123f4e55e12        3 weeks ago         197MB

3.4 根據一個鏡像能夠啓動多個容器,啓動容器的命令是docker run

[root@linux-node1 ~]# docker run -i -t centos /bin/bash
[root@0ac90dce2eee /]# 

  -t 表示讓Docker分配一個僞終端並綁定到容器的標準輸入上

  -i 表示讓容器的標準輸入保持打開

  -d 表示以守護方式打開(即非交互模式,後臺運行)

   還有一個比較經常使用的,作網絡配置時端口映射的參數-p,例以下面的命令將宿主機的3222端口映射到容器的22端口、將宿主機的3280端口映射到容器的22端口,用法以下:

#-p 設置端口映射 -p 宿主機端口:容器端口  
docker run -t -i -p 3222:22 -p 3280:80 87e5b6b3ccc1 /bin/bash

3.5 搜索鏡像,好比搜索一個redis的鏡像,STARS 越多說明越好

[root@linux-node1 ~]# docker search redis
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
redis Redis is an open source key-value store th... 4483 [OK]
bitnami/redis Bitnami Redis Docker Image 61 [OK]
sameersbn/redis 59 [OK]
tenstartups/redis-commander 31 [OK]
joshula/redis-sentinel A container for Redis Sentinel 19
kubeguide/redis-master redis-master with "Hello World!" 19
kubeguide/guestbook-redis-slave Guestbook redis slave 15
tutum/redis Base docker image to run a Redis server 10
webhippie/redis Docker images for redis 7 [OK]
rtoma/logspout-redis-logstash Logspout including Redis adapter for sendi... 5
gurpartap/redis Smallest redis image at 18.56MB, 5.6MB of ... 3
arm32v7/redis Redis is an open source key-value store th... 3
centos/redis-32-centos7 Redis in-memory data structure store, used... 2
tomesar/redis-arm Redis for ARM! 2 [OK]
google/guestbook-python-redis A simple guestbook example written in Pyth... 1
frodenas/redis A Docker Image for Redis 1 [OK]
dynomitedb/redis Redis backend for DynomiteDB. 1 [OK]
vidazoohub/marathon-redis-autoscale autoscale worker tasks based on redis size 1 [OK]
sstarcher/fluent-redis-aws https://github.com/sstarcher/docker-fluent... 0 [OK]
brendangibat/docker-logspout-redis Docker Logspout container with Logspout-Re... 0 [OK]
anchorfree/redis redis cache server for logging 0
kilsoo75/redis-master This image is for the redis master of SK C... 0
iadvize/redis 0
rediscommander/redis-commander Alpine image for redis-commander - Redis m... 0 [OK]
ajmath/fluentd-redis Use fluentd logs to send docker logs to re... 0 [OK]

docker search redis

3.5 查看及刪除鏡像

docker images: # 列出images
docker images -a # 列出全部的images(包含歷史)
docker rmi  <image ID>: # 刪除一個或多個image

3.6 查看容器

docker ps :列出當前全部正在運行的container
docker ps -l :列出最近一次啓動的container
docker ps -a :列出全部的container(包含歷史,即運行過的container)
docker ps -q :列出最近一次運行的container ID

3.7 重啓容器等操做

 docker start/stop/restart <container> #:開啓/中止/重啓container
 docker start [container_id] #:再次運行某個container (包括歷史container)
 docker attach [container_id] #:鏈接一個正在運行的container實例(即實例須爲start狀態,能夠多個窗口同時attach 一個container實例)
 docker start -i <container> #:啓動一個container並進入交互模式(至關於先start,在attach)
 docker run -i -t <image> /bin/bash #:使用image建立container並進入交互模式, login shell是/bin/bash
 docker run -i -t -p <host_port:contain_port> #:映射 HOST 端口到容器,方便外部訪問容器內服務,host_port 能夠省略,省略表示把 container_port 映射到一個動態端口。
 #注:使用start是啓動已經建立過得container,使用run則經過image開啓一個新的 container。

3.8 刪除容器

docker rm <container...> #:刪除一個或多個container
docker rm `docker ps -a -q` #:刪除全部的container
docker ps -a -q | xargs docker rm #:同上, 刪除全部的container

四,Docker鏡像文件導入導出

4.1 查看鏡像id

[root@linux-node1 ~]#  docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
sonarqube           latest              c1637bd4502f        12 days ago         934MB
jenkins             latest              3f08dc4f3f5d        3 weeks ago         809MB
centos              latest              d123f4e55e12        3 weeks ago         197MB

4.2 選擇要打包的鏡像,執行打包命令

#方法一
[root@linux-node1 ~]# docker save -o centos.tar centos #鏡像名稱
[root@linux-node1 ~]# ls
anaconda-ks.cfg  centos.tar 
#方法二  確切的說,export實際上是容器的保存,只把鏡像當前的狀態保存下來
[root@linux-node1 ~]# docker export -o centos-1.tar  b2be6c76c9e2  #容器id

會在當前目錄下生成導出文件xxx.tar,而後將此文件下載到本地

4.3 導入上述打包的鏡像

五,使用Docker Compose管理多個容器

Docker Compose是一個用來定義和運行復雜應用的Docker工具。使用Compose,你能夠在一個文件中定義一個多容器應用,而後使用一條命令來啓動你的應用,完成一切準備工做。
- github.com/docker/compose

5.1 一個使用Docker容器的應用,一般由多個容器組成。使用Docker Compose,再也不須要使用shell腳原本啓動容器。在配置文件中,全部的容器經過services來定義,而後使用docker-compose腳原本啓動,中止和重啓應用,和應用中的服務以及全部依賴服務的容器。完整的命令列表以下:

build 構建或重建服務
help 命令幫助
kill 殺掉容器
logs 顯示容器的輸出內容
port 打印綁定的開放端口
ps 顯示容器
pull 拉取服務鏡像
restart 重啓服務
rm 刪除中止的容器
run 運行一個一次性命令
scale 設置服務的容器數目
start 開啓服務
stop 中止服務
up 建立並啓動容器

參考 https://docs.docker.com/compose/install/ 。你能運行Compose在OSX和64位Linux

5.2 在上面2.1步驟中咱們已經安裝了 Doceker Compose

curl -L https://github.com/docker/compose/releases/download/1.4.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod  x /usr/local/bin/docker-compose

5.3 Compose的配置文件是docker-compose.yml。讓咱們看看下面這個文件:

[root@linux-node1 devops]# cat docker-compose.yml
version: '2'

services:
gitlab:
image: gitlab/gitlab-ce:latest
ports:
- "443:443"
- "80:80"
- "22:22"
networks:
- devops
volumes:
- /root/data/gitlab/config:/etc/gitlab
- /root/data/gitlab/logs:/var/log/gitlab
- /root/data/gitlab/data:/var/opt/gitlab

jenkins:
image: jenkins:latest
ports:
- "8080:8080"
- "50000:50000"
networks:
- devops
volumes:
- /root/data/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock

sonarqube:
image: sonarqube:latest
ports:
- "9000:9000"
- "9092:9092"
networks:
- devops

networks:
devops:
driver: bridge

cat docker-compose.yml

    a. 定義了兩個服務分別叫作gitlab,jenkins和sonarqube
    b. 使用image定義每一個服務的鏡像名
    c. networks:定義網絡類型
    d. volumes:定義卷與本地磁盤的映射關係
    e. 使用ports實現端口轉發

5.4 啓動服務

docker-compose.yml是compose默認查找的文件,使用下面的命令,全部的服務將使用後臺模式被啓動

 

使用-f指定代替的compose文件
使用-p指定代替compose文件所在的目錄

docker-compose up -d  jenkins #也能夠指定 docker-compose.yml中某一個服務運行

5.5 驗證啓動的服務

這裏提供了一個整合的列表顯示全部啓動的服務和容器

5.6 一般使用docker ps命令來驗證應用的容器,和在Docker主機上運行的其餘容器

5.7  中止服務

5.8 查看日誌

[root@linux-node1 devops]# docker-compose logs
Attaching to devops_jenkins_2, devops_gitlab_1, devops_sonarqube_1, devops_jenkins_1
gitlab_1 | Thank you for using GitLab Docker Image!
gitlab_1 | Current version: gitlab-ce=10.2.1-ce.0
gitlab_1 |
gitlab_1 | Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab_1 | And restart this container to reload settings.
gitlab_1 | To do it use docker exec:
gitlab_1 |
gitlab_1 | docker exec -it gitlab vim /etc/gitlab/gitlab.rb
gitlab_1 | docker restart gitlab
gitlab_1 |
gitlab_1 | For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab_1 | https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab_1 |
gitlab_1 | If this container fails to start due to permission problems try to fix it by executing:
gitlab_1 |
gitlab_1 | docker exec -it gitlab update-permissions
gitlab_1 | docker restart gitlab
gitlab_1 |
gitlab_1 | Installing gitlab.rb config...
gitlab_1 | Generating ssh_host_rsa_key...
gitlab_1 | Generating public/private rsa key pair.
gitlab_1 | Your identification has been saved in /etc/gitlab/ssh_host_rsa_key.
gitlab_1 | Your public key has been saved in /etc/gitlab/ssh_host_rsa_key.pub.
gitlab_1 | The key fingerprint is:
gitlab_1 | SHA256:ruov5EXSS62oUDR+gNbdN+JfxsHLHvBtkqBJTZ0rSVw root@99c7c0d5732d
gitlab_1 | The key's randomart image is:
gitlab_1 | +---[RSA 2048]----+
gitlab_1 | | .. . . +.+E. |
gitlab_1 | |..+. . + O = |
gitlab_1 | |.o o .o.* O * |
gitlab_1 | | o o ++.o % o |
gitlab_1 | | . . = oS = + |
gitlab_1 | |. o +. . . |
gitlab_1 | | . + . . |
gitlab_1 | | . o . |
gitlab_1 | | .o+o |
gitlab_1 | +----[SHA256]-----+
gitlab_1 | Generating ssh_host_ecdsa_key...
gitlab_1 | Generating public/private ecdsa key pair.
gitlab_1 | Your identification has been saved in /etc/gitlab/ssh_host_ecdsa_key.
gitlab_1 | Your public key has been saved in /etc/gitlab/ssh_host_ecdsa_key.pub.
gitlab_1 | The key fingerprint is:
gitlab_1 | SHA256:1vcxaXrHEjGYlS1v8DJaIJLlsgI2xDpWyycW/rf6kN8 root@99c7c0d5732d
gitlab_1 | The key's randomart image is:
gitlab_1 | +---[ECDSA 256]---+
gitlab_1 | | .. o. .o |
gitlab_1 | | .+ o.. .++ .|
gitlab_1 | | =+o ....o.o= |
gitlab_1 | | +.*o. + +++|
gitlab_1 | | . o +. S . .o*+ |
gitlab_1 | | .+. ..+ = |
gitlab_1 | | o. . . + o|
gitlab_1 | | o.. . o |
gitlab_1 | | .oo E |
gitlab_1 | +----[SHA256]-----+
gitlab_1 | Generating ssh_host_ed25519_key...
gitlab_1 | Generating public/private ed25519 key pair.
gitlab_1 | Your identification has been saved in /etc/gitlab/ssh_host_ed25519_key.
gitlab_1 | Your public key has been saved in /etc/gitlab/ssh_host_ed25519_key.pub.
gitlab_1 | The key fingerprint is:
gitlab_1 | SHA256:9fYaA1KqoJMOHu04ln5VyytmiXYnlR29b37DJDf/7MY root@99c7c0d5732d
gitlab_1 | The key's randomart image is:
gitlab_1 | +--[ED25519 256]--+
gitlab_1 | | |
gitlab_1 | | |
gitlab_1 | | + |
gitlab_1 | | . = o |
gitlab_1 | | . o S o + |
gitlab_1 | | .o o * o + o + |
gitlab_1 | |..=.o + . + *.o|
gitlab_1 | |.*+= B o * =E|
gitlab_1 | |o+=.+ + +..o*|
gitlab_1 | +----[SHA256]-----+
gitlab_1 | Preparing services...
gitlab_1 | Starting services...
gitlab_1 | Configuring GitLab package...
gitlab_1 | /opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
gitlab_1 | /opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
gitlab_1 | gitlab preinstall:
gitlab_1 | gitlab preinstall: This node does not appear to be running a database
gitlab_1 | gitlab preinstall: Skipping version check, if you think this is an error exit now
gitlab_1 | gitlab preinstall:
gitlab_1 | Configuring GitLab...
gitlab_1 |
gitlab_1 |
gitlab_1 | * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs
gitlab_1 |
gitlab_1 | * Symlinking existing certificates found in /etc/gitlab/trusted-certs
gitlab_1 | Thank you for using GitLab Docker Image!
gitlab_1 | Current version: gitlab-ce=10.2.1-ce.0
gitlab_1 |
gitlab_1 | Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab_1 | And restart this container to reload settings.
gitlab_1 | To do it use docker exec:
gitlab_1 |
gitlab_1 | docker exec -it gitlab vim /etc/gitlab/gitlab.rb
gitlab_1 | docker restart gitlab
gitlab_1 |
gitlab_1 | For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab_1 | https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab_1 |
gitlab_1 | If this container fails to start due to permission problems try to fix it by executing:
gitlab_1 |
gitlab_1 | docker exec -it gitlab update-permissions
gitlab_1 | docker restart gitlab
gitlab_1 |
gitlab_1 | Preparing services...
gitlab_1 | Starting services...
gitlab_1 | Configuring GitLab package...
gitlab_1 | /opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
gitlab_1 | /opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
gitlab_1 | gitlab preinstall:
gitlab_1 | gitlab preinstall: This node does not appear to be running a database
gitlab_1 | gitlab preinstall: Skipping version check, if you think this is an error exit now
gitlab_1 | gitlab preinstall:
gitlab_1 | Configuring GitLab...
jenkins_1 | Running from: /usr/share/jenkins/jenkins.war
jenkins_1 | webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins_1 | Nov 25, 2017 9:33:33 PM Main deleteWinstoneTempContents
jenkins_1 | WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
jenkins_1 | Nov 25, 2017 9:33:34 PM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Logging initialized @4345ms
jenkins_1 | Nov 25, 2017 9:33:34 PM winstone.Logger logInternal
jenkins_1 | INFO: Beginning extraction from war file
jenkins_1 | Nov 25, 2017 9:33:34 PM org.eclipse.jetty.util.log.JavaUtilLog warn
jenkins_1 | WARNING: Empty contextPath
jenkins_1 | Nov 25, 2017 9:33:34 PM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: jetty-9.2.z-SNAPSHOT
jenkins_1 | Nov 25, 2017 9:33:38 PM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
jenkins_1 | Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins_1 | Nov 25, 2017 9:33:43 PM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started w.@173ed316{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
jenkins_1 | Nov 25, 2017 9:33:44 PM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started ServerConnector@53fb3dab{HTTP/1.1}{0.0.0.0:8080}
jenkins_1 | Nov 25, 2017 9:33:44 PM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started @14237ms
jenkins_1 | Nov 25, 2017 9:33:44 PM winstone.Logger logInternal
jenkins_1 | INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
jenkins_1 | Nov 25, 2017 9:33:46 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Started initialization
jenkins_1 | Nov 25, 2017 9:33:55 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Listed all plugins
jenkins_1 | Nov 25, 2017 9:34:29 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Prepared all plugins
jenkins_1 | Nov 25, 2017 9:34:29 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Started all plugins
jenkins_1 | Nov 25, 2017 9:34:38 PM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
jenkins_1 | INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
jenkins_1 | Nov 25, 2017 9:34:39 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Augmented all extensions
jenkins_1 | Nov 25, 2017 9:34:41 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Loaded all jobs
jenkins_1 | Nov 25, 2017 9:34:41 PM hudson.model.AsyncPeriodicWork$1 run
jenkins_1 | INFO: Started Download metadata
jenkins_1 | Nov 25, 2017 9:34:41 PM jenkins.util.groovy.GroovyHookScript execute
jenkins_1 | INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
jenkins_1 | Nov 25, 2017 9:34:45 PM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Completed initialization
jenkins_1 | Nov 25, 2017 9:34:45 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
jenkins_1 | INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@a119ee: display name [Root WebApplicationContext]; startup date [Sat Nov 25 21:34:45 UTC 2017]; root of context hierarchy
jenkins_1 | Nov 25, 2017 9:34:45 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
jenkins_1 | INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@a119ee]: org.springframework.beans.factory.support.DefaultListableBeanFactory@22fb6b1
jenkins_1 | Nov 25, 2017 9:34:45 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
jenkins_1 | INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@22fb6b1: defining beans [authenticationManager]; root of factory hierarchy
jenkins_1 | Nov 25, 2017 9:34:46 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
jenkins_1 | INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@2ef02173: display name [Root WebApplicationContext]; startup date [Sat Nov 25 21:34:46 UTC 2017]; root of context hierarchy
jenkins_1 | Nov 25, 2017 9:34:46 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
jenkins_1 | INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@2ef02173]: org.springframework.beans.factory.support.DefaultListableBeanFactory@21d20e75
jenkins_1 | Nov 25, 2017 9:34:46 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
jenkins_1 | INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@21d20e75: defining beans [filter,legacy]; root of factory hierarchy
jenkins_1 | Nov 25, 2017 9:34:49 PM hudson.WebAppMain$3 run
jenkins_1 | INFO: Jenkins is fully up and running
sonarqube_1 | 2017.11.26 09:47:25 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
sonarqube_1 | 2017.11.26 09:47:27 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jenkins_1 | Nov 25, 2017 9:34:53 PM hudson.model.UpdateSite updateData
jenkins_1 | INFO: Obtained the latest update center data file for UpdateSource default
jenkins_1 | --> setting agent port for jnlp
jenkins_1 | --> setting agent port for jnlp... done
jenkins_1 | Nov 25, 2017 9:34:57 PM hudson.model.DownloadService$Downloadable load
jenkins_1 | INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
jenkins_1 | Nov 25, 2017 9:34:58 PM hudson.model.DownloadService$Downloadable load
sonarqube_1 | 2017.11.26 09:47:29 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
sonarqube_1 | 2017.11.26 09:47:30 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
sonarqube_1 | 2017.11.26 09:47:46 INFO app[][o.e.p.PluginsService] no modules loaded
sonarqube_1 | 2017.11.26 09:47:46 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
sonarqube_1 | 2017.11.26 09:50:14 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
sonarqube_1 | 2017.11.26 09:50:15 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.security.egd=file:/dev/./urandom -cp ./lib/common/*:./lib/server/*:/opt/sonarqube/lib/jdbc/h2/h2-1.3.176.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process2006673090366779016properties
sonarqube_1 | 2017.11.26 09:51:48 INFO web[][o.s.p.ProcessEntryPoint] Starting web
sonarqube_1 | 2017.11.26 09:52:07 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read
sonarqube_1 | 2017.11.26 09:52:50 INFO web[][o.e.p.PluginsService] no modules loaded
sonarqube_1 | 2017.11.26 09:52:50 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
jenkins_1 | INFO: Obtained the updated data file for hudson.tasks.Ant.AntInstaller
jenkins_1 | Nov 25, 2017 9:35:00 PM hudson.model.DownloadService$Downloadable load
jenkins_1 | INFO: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller
jenkins_1 | Nov 25, 2017 9:35:14 PM hudson.model.DownloadService$Downloadable load
jenkins_1 | INFO: Obtained the updated data file for hudson.tools.JDKInstaller
jenkins_1 | Nov 25, 2017 9:35:14 PM hudson.model.AsyncPeriodicWork$1 run
sonarqube_1 | 2017.11.26 09:52:50 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
jenkins_1 | INFO: Finished Download metadata. 32,878 ms
jenkins_1 | Nov 26, 2017 1:21:51 AM hudson.slaves.SlaveComputer tryReconnect
sonarqube_1 | 2017.11.26 09:52:50 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
sonarqube_1 | 2017.11.26 09:52:50 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
sonarqube_1 | 2017.11.26 09:53:58 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001]
sonarqube_1 | 2017.11.26 09:53:59 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.7.0.33306 / 5d031d9d2ac3f69b4b9bc600d50563b1886c7d8b
sonarqube_1 | 2017.11.26 09:54:02 INFO web[][o.s.s.p.d.EmbeddedDatabase] Starting embedded database on port 9092 with url jdbc:h2:tcp://127.0.0.1:9092/sonar
sonarqube_1 | 2017.11.26 09:54:03 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database started. Data stored in: /opt/sonarqube/data
sonarqube_1 | 2017.11.26 09:54:03 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:h2:tcp://127.0.0.1:9092/sonar
sonarqube_1 | 2017.11.26 09:54:04 WARN web[][o.s.d.DatabaseChecker] H2 database should be used for evaluation purpose only
sonarqube_1 | 2017.11.26 09:54:16 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: /opt/sonarqube
sonarqube_1 | 2017.11.26 09:54:16 INFO web[][o.s.s.u.SystemPasscodeImpl] System authentication by passcode is disabled
sonarqube_1 | 2017.11.26 09:54:18 INFO web[][o.s.s.p.d.m.h.MigrationHistoryTableImpl] Creating table schema_migrations
sonarqube_1 | 2017.11.26 09:54:21 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarC# [csharp] installed
sonarqube_1 | 2017.11.26 09:54:21 INFO web[][o.s.s.p.ServerPluginRepository] Plugin Flex [flex] installed
sonarqube_1 | 2017.11.26 09:54:21 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarJava [java] installed
jenkins_1 | INFO: Attempting to reconnect 192.168.56.12
jenkins_1 | Nov 26, 2017 1:21:52 AM hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager getTrileadSupport
jenkins_1 | WARNING: Could not create Trilead support class. Using legacy Trilead features
jenkins_1 | java.lang.ClassNotFoundException: hudson.plugins.sshslaves.verifiers.JenkinsTrilead9VersionSupport
sonarqube_1 | 2017.11.26 09:54:22 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarJS [javascript] installed
sonarqube_1 | 2017.11.26 09:54:22 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarPHP [php] installed
sonarqube_1 | 2017.11.26 09:54:23 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarPython [python] installed
sonarqube_1 | 2017.11.26 09:54:23 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarQube :: Plugins :: SCM :: Git [scmgit] installed
sonarqube_1 | 2017.11.26 09:54:25 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarQube :: Plugins :: SCM :: SVN [scmsvn] installed
sonarqube_1 | 2017.11.26 09:54:25 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarTS [typescript] installed
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Plugin SonarXML [xml] installed
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Flex / 2.3 / 79167f762219bea1fd181ff5ef6ca4b34abd1675
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarC# / 6.5.0.3766 / 6011a1e9fb002edb044ae3092d92bcfb7d9d8a2d
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJS / 3.2.0.5506 / 86da09565f891121df248835665f5d8ed98772b6
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarJava / 4.15.0.12310 / 572454b93016ec73a53fe0e07b2ffdc356d21ba9
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPHP / 2.11.0.2485 / 741861a29e5f9a26c6c99c06268facb6c4f4a882
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarPython / 1.8.0.1496 / 3fe3bc4d0273a5721ea2fb368dc45b1bb82fede3
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: Git / 1.3.0.869 / 4da53e3f9e55f4f2e5796625cb0c5768ed152079
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarQube :: Plugins :: SCM :: SVN / 1.6.0.860 / 2111fdbd1dddda4ad6d4ed6486fd0b18c1010d3b
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarTS / 1.1.0.1079 / 042c9e65239a47d92d305f9767f730b3cc1e5ed3
sonarqube_1 | 2017.11.26 09:54:26 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SonarXML / 1.4.3.1027 / 39588245cecf538bb27be4e496ff303b0143d20b
sonarqube_1 | 2017.11.26 09:54:40 INFO web[][o.s.s.p.d.m.AutoDbMigration] Automatically perform DB migration on fresh install
sonarqube_1 | 2017.11.26 09:54:45 INFO web[][o.s.s.p.Platform] Database has been automatically updated
sonarqube_1 | 2017.11.26 09:54:47 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter@3b5f210 [pattern=UrlPattern{inclusions=[/api/system/migrate_db/*, ...], exclusions=[/api/properties*, ...]}]
sonarqube_1 | 2017.11.26 09:54:49 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
sonarqube_1 | 2017.11.26 09:55:04 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy)
sonarqube_1 | 2017.11.26 09:55:15 INFO web[][o.s.s.e.IndexCreator] Create index metadatas
sonarqube_1 | 2017.11.26 09:55:24 INFO web[][o.s.s.e.IndexCreator] Create type metadatas/metadata
sonarqube_1 | 2017.11.26 09:55:30 INFO web[][o.s.s.e.IndexCreator] Create index components
sonarqube_1 | 2017.11.26 09:55:31 INFO web[][o.s.s.e.IndexCreator] Create type components/component
sonarqube_1 | 2017.11.26 09:55:32 INFO web[][o.s.s.e.IndexCreator] Create type components/authorization
sonarqube_1 | 2017.11.26 09:55:32 INFO web[][o.s.s.e.IndexCreator] Create index tests
sonarqube_1 | 2017.11.26 09:55:42 INFO web[][o.s.s.e.IndexCreator] Create type tests/test
sonarqube_1 | 2017.11.26 09:55:42 INFO web[][o.s.s.e.IndexCreator] Create index projectmeasures
sonarqube_1 | 2017.11.26 09:55:44 INFO web[][o.s.s.e.IndexCreator] Create type projectmeasures/projectmeasure
sonarqube_1 | 2017.11.26 09:55:44 INFO web[][o.s.s.e.IndexCreator] Create type projectmeasures/authorization
sonarqube_1 | 2017.11.26 09:55:44 INFO web[][o.s.s.e.IndexCreator] Create index rules
sonarqube_1 | 2017.11.26 09:55:45 INFO web[][o.s.s.e.IndexCreator] Create type rules/activeRule
sonarqube_1 | 2017.11.26 09:55:45 INFO web[][o.s.s.e.IndexCreator] Create type rules/ruleExtension
sonarqube_1 | 2017.11.26 09:55:45 INFO web[][o.s.s.e.IndexCreator] Create type rules/rule
sonarqube_1 | 2017.11.26 09:55:45 INFO web[][o.s.s.e.IndexCreator] Create index issues
sonarqube_1 | 2017.11.26 09:55:47 INFO web[][o.s.s.e.IndexCreator] Create type issues/issue
sonarqube_1 | 2017.11.26 09:55:47 INFO web[][o.s.s.e.IndexCreator] Create type issues/authorization
sonarqube_1 | 2017.11.26 09:55:47 INFO web[][o.s.s.e.IndexCreator] Create index users
sonarqube_1 | 2017.11.26 09:55:48 INFO web[][o.s.s.e.IndexCreator] Create type users/user
sonarqube_1 | 2017.11.26 09:55:48 INFO web[][o.s.s.e.IndexCreator] Create index views
sonarqube_1 | 2017.11.26 09:55:49 INFO web[][o.s.s.e.IndexCreator] Create type views/view
sonarqube_1 | 2017.11.26 09:55:49 INFO web[][o.s.s.s.LogServerId] Server ID: AV_3wDA9OE2VuBmwVKrC
sonarqube_1 | 2017.11.26 09:55:51 INFO web[][o.s.s.t.TelemetryDaemon] Sharing of SonarQube statistics is enabled.
sonarqube_1 | 2017.11.26 09:55:51 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.)
sonarqube_1 | 2017.11.26 09:55:52 INFO web[][o.s.s.s.GeneratePluginIndex] Generate scanner plugin index
sonarqube_1 | 2017.11.26 09:55:54 INFO web[][o.s.s.s.RegisterPlugins] Register plugins
sonarqube_1 | 2017.11.26 09:55:55 INFO web[][o.s.s.s.RegisterMetrics] Register metrics
sonarqube_1 | 2017.11.26 09:55:56 INFO web[][o.s.s.r.RegisterRules] Register rules
sonarqube_1 | 2017.11.26 09:56:30 INFO app[][o.s.a.SchedulerImpl] Stopping SonarQube
jenkins_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
sonarqube_1 | 2017.11.26 09:56:30 INFO web[][o.s.p.StopWatcher] Stopping process
jenkins_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
sonarqube_1 | chown: cannot access '/opt/sonarqube/temp/README.txt': No such file or directory
jenkins_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
jenkins_1 | at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
jenkins_1 | at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.createVersion9Instance(TrileadVersionSupportManager.java:51)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.getTrileadSupport(TrileadVersionSupportManager.java:32)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.SshHostKeyVerificationStrategy.getPreferredKeyAlgorithms(SshHostKeyVerificationStrategy.java:68)
jenkins_1 | at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:797)
jenkins_1 | at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793)
jenkins_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jenkins_1 | at java.lang.Thread.run(Thread.java:748)
jenkins_1 |
jenkins_1 | [11/26/17 01:22:25] SSH Launch of 192.168.56.12 on 192.168.56.12 completed in 33,006 ms
jenkins_1 | Nov 26, 2017 2:36:50 AM hudson.model.Run execute
jenkins_1 | INFO: test #1 main build action completed: SUCCESS
jenkins_1 | Nov 26, 2017 2:37:29 AM hudson.model.Run execute
jenkins_1 | INFO: test #2 main build action completed: SUCCESS
jenkins_1 | Running from: /usr/share/jenkins/jenkins.war
jenkins_1 | webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins_1 | Nov 26, 2017 9:47:08 AM Main deleteWinstoneTempContents
jenkins_1 | WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
jenkins_1 | Nov 26, 2017 9:47:10 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Logging initialized @17801ms
jenkins_1 | Nov 26, 2017 9:47:11 AM winstone.Logger logInternal
jenkins_1 | INFO: Beginning extraction from war file
jenkins_1 | Nov 26, 2017 9:47:11 AM org.eclipse.jetty.util.log.JavaUtilLog warn
jenkins_1 | WARNING: Empty contextPath
jenkins_1 | Nov 26, 2017 9:47:12 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: jetty-9.2.z-SNAPSHOT
jenkins_1 | Nov 26, 2017 9:47:22 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
jenkins_1 | Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins_1 | Nov 26, 2017 9:47:38 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started w.@8f2ef19{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
jenkins_1 | Nov 26, 2017 9:47:40 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started ServerConnector@6bbe85a8{HTTP/1.1}{0.0.0.0:8080}
jenkins_1 | Nov 26, 2017 9:47:40 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started @47113ms
jenkins_1 | Nov 26, 2017 9:47:40 AM winstone.Logger logInternal
jenkins_1 | INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
jenkins_1 | Nov 26, 2017 9:48:02 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Started initialization
jenkins_1 | Nov 26, 2017 9:48:42 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Listed all plugins
jenkins_1 | Nov 26, 2017 9:50:53 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Prepared all plugins
jenkins_1 | Nov 26, 2017 9:50:53 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Started all plugins
jenkins_1 | Nov 26, 2017 9:52:03 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
jenkins_1 | INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
jenkins_1 | Nov 26, 2017 9:52:12 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Augmented all extensions
jenkins_1 | Nov 26, 2017 9:52:22 AM hudson.slaves.SlaveComputer tryReconnect
jenkins_1 | INFO: Attempting to reconnect 192.168.56.12
jenkins_1 | Nov 26, 2017 9:52:24 AM hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager getTrileadSupport
jenkins_1 | WARNING: Could not create Trilead support class. Using legacy Trilead features
jenkins_1 | java.lang.ClassNotFoundException: hudson.plugins.sshslaves.verifiers.JenkinsTrilead9VersionSupport
jenkins_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
jenkins_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
jenkins_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
jenkins_1 | at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
jenkins_1 | at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.createVersion9Instance(TrileadVersionSupportManager.java:51)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.getTrileadSupport(TrileadVersionSupportManager.java:32)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.SshHostKeyVerificationStrategy.getPreferredKeyAlgorithms(SshHostKeyVerificationStrategy.java:68)
jenkins_1 | at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:797)
jenkins_1 | at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793)
jenkins_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jenkins_1 | at java.lang.Thread.run(Thread.java:748)
jenkins_1 |
jenkins_1 | Nov 26, 2017 9:52:25 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Loaded all jobs
jenkins_1 | Nov 26, 2017 9:52:26 AM jenkins.util.groovy.GroovyHookScript execute
jenkins_1 | INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
jenkins_1 | Nov 26, 2017 9:52:26 AM hudson.model.AsyncPeriodicWork$1 run
jenkins_1 | INFO: Started Download metadata
jenkins_1 | Nov 26, 2017 9:52:26 AM hudson.model.AsyncPeriodicWork$1 run
jenkins_1 | INFO: Finished Download metadata. 358 ms
jenkins_1 | Nov 26, 2017 9:52:38 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Completed initialization
jenkins_1 | Nov 26, 2017 9:52:40 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
jenkins_1 | INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@642aae8a: display name [Root WebApplicationContext]; startup date [Sun Nov 26 09:52:40 UTC 2017]; root of context hierarchy
jenkins_1 | Nov 26, 2017 9:52:40 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
jenkins_1 | INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@642aae8a]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5e0a44b5
jenkins_1 | Nov 26, 2017 9:52:40 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
jenkins_1 | INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5e0a44b5: defining beans [authenticationManager]; root of factory hierarchy
jenkins_1 | Nov 26, 2017 9:52:46 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
jenkins_1 | INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@5b4cb6d5: display name [Root WebApplicationContext]; startup date [Sun Nov 26 09:52:46 UTC 2017]; root of context hierarchy
jenkins_1 | Nov 26, 2017 9:52:46 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
jenkins_1 | INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@5b4cb6d5]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1d7406d4
jenkins_1 | Nov 26, 2017 9:52:46 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
jenkins_1 | INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1d7406d4: defining beans [filter,legacy]; root of factory hierarchy
jenkins_1 | --> setting agent port for jnlp
jenkins_1 | --> setting agent port for jnlp... done
jenkins_1 | Nov 26, 2017 9:52:59 AM hudson.WebAppMain$3 run
jenkins_1 | INFO: Jenkins is fully up and running
jenkins_1 | [11/26/17 09:53:45] SSH Launch of 192.168.56.12 on 192.168.56.12 completed in 81,456 ms
jenkins_1 | Running from: /usr/share/jenkins/jenkins.war
jenkins_1 | webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins_1 | Nov 26, 2017 9:57:56 AM Main deleteWinstoneTempContents
jenkins_1 | WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
jenkins_1 | Nov 26, 2017 9:57:57 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Logging initialized @4682ms
jenkins_1 | Nov 26, 2017 9:57:57 AM winstone.Logger logInternal
jenkins_1 | INFO: Beginning extraction from war file
jenkins_1 | Nov 26, 2017 9:57:57 AM org.eclipse.jetty.util.log.JavaUtilLog warn
jenkins_1 | WARNING: Empty contextPath
jenkins_1 | Nov 26, 2017 9:57:57 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: jetty-9.2.z-SNAPSHOT
jenkins_1 | Nov 26, 2017 9:58:02 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
jenkins_1 | Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
jenkins_1 | Nov 26, 2017 9:58:07 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started w.@8f2ef19{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
jenkins_1 | Nov 26, 2017 9:58:07 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started ServerConnector@6bbe85a8{HTTP/1.1}{0.0.0.0:8080}
jenkins_1 | Nov 26, 2017 9:58:07 AM org.eclipse.jetty.util.log.JavaUtilLog info
jenkins_1 | INFO: Started @15288ms
jenkins_1 | Nov 26, 2017 9:58:07 AM winstone.Logger logInternal
jenkins_1 | INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
jenkins_1 | Nov 26, 2017 9:58:10 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Started initialization
jenkins_1 | Nov 26, 2017 9:58:19 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Listed all plugins
jenkins_1 | Nov 26, 2017 9:58:55 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Prepared all plugins
jenkins_1 | Nov 26, 2017 9:58:55 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Started all plugins
jenkins_1 | Nov 26, 2017 9:59:05 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
jenkins_1 | INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
jenkins_1 | Nov 26, 2017 9:59:06 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Augmented all extensions
jenkins_1 | Nov 26, 2017 9:59:08 AM hudson.slaves.SlaveComputer tryReconnect
jenkins_1 | INFO: Attempting to reconnect 192.168.56.12
jenkins_1 | Nov 26, 2017 9:59:09 AM hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager getTrileadSupport
jenkins_1 | WARNING: Could not create Trilead support class. Using legacy Trilead features
jenkins_1 | java.lang.ClassNotFoundException: hudson.plugins.sshslaves.verifiers.JenkinsTrilead9VersionSupport
jenkins_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
jenkins_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
jenkins_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
jenkins_1 | at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)
jenkins_1 | at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.createVersion9Instance(TrileadVersionSupportManager.java:51)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.TrileadVersionSupportManager.getTrileadSupport(TrileadVersionSupportManager.java:32)
jenkins_1 | at hudson.plugins.sshslaves.verifiers.SshHostKeyVerificationStrategy.getPreferredKeyAlgorithms(SshHostKeyVerificationStrategy.java:68)
jenkins_1 | at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:797)
jenkins_1 | at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793)
jenkins_1 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jenkins_1 | at java.lang.Thread.run(Thread.java:748)
jenkins_1 |
jenkins_1 | Nov 26, 2017 9:59:09 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Loaded all jobs
jenkins_1 | Nov 26, 2017 9:59:09 AM hudson.model.AsyncPeriodicWork$1 run
jenkins_1 | INFO: Started Download metadata
jenkins_1 | Nov 26, 2017 9:59:09 AM hudson.model.AsyncPeriodicWork$1 run
jenkins_1 | INFO: Finished Download metadata. 60 ms
jenkins_1 | Nov 26, 2017 9:59:09 AM jenkins.util.groovy.GroovyHookScript execute
jenkins_1 | INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
jenkins_1 | Nov 26, 2017 9:59:11 AM jenkins.InitReactorRunner$1 onAttained
jenkins_1 | INFO: Completed initialization
jenkins_1 | Nov 26, 2017 9:59:12 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
jenkins_1 | INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@76c9c95d: display name [Root WebApplicationContext]; startup date [Sun Nov 26 09:59:12 UTC 2017]; root of context hierarchy
jenkins_1 | Nov 26, 2017 9:59:12 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
jenkins_1 | INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@76c9c95d]: org.springframework.beans.factory.support.DefaultListableBeanFactory@e4b920
jenkins_1 | Nov 26, 2017 9:59:12 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
jenkins_1 | INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e4b920: defining beans [authenticationManager]; root of factory hierarchy
jenkins_1 | Nov 26, 2017 9:59:13 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
jenkins_1 | INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@45650628: display name [Root WebApplicationContext]; startup date [Sun Nov 26 09:59:13 UTC 2017]; root of context hierarchy
jenkins_1 | Nov 26, 2017 9:59:13 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
jenkins_1 | INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@45650628]: org.springframework.beans.factory.support.DefaultListableBeanFactory@a742b6b
jenkins_1 | Nov 26, 2017 9:59:13 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
jenkins_1 | INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a742b6b: defining beans [filter,legacy]; root of factory hierarchy
jenkins_1 | Nov 26, 2017 9:59:16 AM hudson.WebAppMain$3 run
jenkins_1 | INFO: Jenkins is fully up and running
jenkins_1 | --> setting agent port for jnlp
jenkins_1 | --> setting agent port for jnlp... done
jenkins_1 | [11/26/17 09:59:33] SSH Launch of 192.168.56.12 on 192.168.56.12 completed in 24,795 ms
jenkins_1 | Nov 26, 2017 10:00:50 AM winstone.Logger logInternal
jenkins_1 | INFO: JVM is terminating. Shutting down Winstone

docker-compose logs

相關文章
相關標籤/搜索