我已经在CI的docker-compose.yml中定义了Jenkins,如下所示:
...
jenkins:
image: jenkinsci/jenkins:lts
hostname: jenkins
environment:
JAVA_OPTS: "-Djava.awt.headless=true"
restart: unless-stopped
volumes:
- jenkins-data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker
ports:
- "50000:50000"
- "8082:8080"
networks:
- facto
...
我理解“:lts”应确保使用最新的:lts版本,即,如果docker-hub上有可用的较新版本,则它应下载该版本并在(re -)启动它。
今天我登录Jenkins门户时,看到了以下消息:
New version of Jenkins (2.176.2) is available for download (changelog). Warnings have been published for the following currently installed components.
Jenkins 2.151 core and libraries
Multiple security vulnerabilities in Jenkins 2.185 and earlier, and LTS 2.176.1 and earlier
Multiple security vulnerabilities in Jenkins 2.153 and earlier, and LTS 2.138.3 and earlier
Multiple security vulnerabilities in Jenkins 2.159 and earlier, and LTS 2.150.1 and earlier
Multiple security vulnerabilities in Jenkins 2.171 and earlier, and LTS 2.164.1 and earlier
由于我的门户仍显示v2.151,因此我使用“ docker-compose down”停止了容器并发出了“ docker-compose pull”来更新映像。不出所料,我收到一条消息,它已检测到该消息,并且正在拉出更新版本的Jenkins。
但是在使用“ docker-compose up -d”继续/重新启动安装程序并再次访问Jenkins门户后,我仍然收到同样的警告消息。此外,版本号仍显示为“ Jenkins ver.2.151”!?!
由于创建了具有较新版本的较新映像,所以我希望上面的警告现在已经消失,并且我会看到较新的版本号(即“ 2.176.2”或最新的LTS“ 2.176”)。 1“)。为什么我仍然看到旧版本号和上面提到的警告?
更新此Jenkins图片时我缺少什么?