-
-
Notifications
You must be signed in to change notification settings - Fork 249
Description
Jenkins and plugins versions report
Occurs during building of image, rather than executing Jenkins
- using
jenkins/inbound-agent:latest - attempting to pin the version of docker installed
What Operating System are you using (both controller, and any agents involved in the problem)?
Debian AMD
Reproduction steps
- Use the
jenkins/inbound-agent:latestimage to build your own Docker image - Purposefully install a software version pinned to
trixiee.gapt-get -y install docker-ce=5:28.1.0-1~debian.13~trixie - Builds will occasionally fail as the image pulled is
bookworm(based on release cadence of new images, run this several times around when new images come out)
Example set of commands to install Docker that can fail
RUN install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
chmod a+r /etc/apt/keyrings/docker.gpg && \
echo "deb [arch=\"$(dpkg --print-architecture)\" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
cat /etc/apt/sources.list.d/docker.list && \
apt-get update && \
apt-get -y install docker-ce=5:28.1.0-1~debian.13~trixie skopeo && \
usermod -aG docker jenkins && \
docker --help > /dev/null
Expected Results
when using latest image tag, trixie will always be pulled, image builds will not fail
Actual Results
Builds occasionally fail with the following error:
17:21:48 > [jenkins-agent-default linux/amd64 base 6/16]
17:21:48 1.860 Reading package lists...
17:21:48 2.262 Building dependency tree...
17:21:48 2.378 Reading state information...
17:21:48 2.410 Package docker-ce is not available, but is referred to by another package.
17:21:48 2.410 This may mean that the package is missing, has been obsoleted, or
17:21:48 2.410 is only available from another source
17:21:48 2.410 However the following packages replace it:
17:21:48 2.410 docker-ce-cli
17:21:48 2.410
17:21:48 2.414 E: Version '5:28.1.0-1~debian.13~trixie' for 'docker-ce' was not found
The following part of the command makes it clear it's bookworm:
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
Anything else?
Sounds a successor to or related to #1059
This appears to occur around the time new images are released, as this again happened to me when attempting to debug this locally this week.
When the bookworm image is released, it gets tagged as latest
Then when the trixie image is released, it then gets tagged as latest
Presume there is just an additional tag in the bookworm configuration
I have no evidence of this occurring before this month (Jan) as we do not build the image on a regular cadence
Are you interested in contributing a fix?
No response
(edited for back tick issues)