If you are reporting a problem, please make sure the following information are provided:
Expected behavior and actual behavior:
Jenkins log:
docker push harbor.domain.com/nameserverdns/dev/bind:20260728
The push refers to repository [harbor.domain.com/nameserverdns/dev/bind]
6163cb122752: Waiting
37008765f419: Waiting
827bef93144e: Waiting
c6313663a00a: Waiting
9ac1877b4700: Waiting
ca2678b20700: Waiting
94528cf87bc1: Waiting
fd966f87db4b: Waiting
9ac1877b4700: Waiting
ca2678b20700: Layer already exists
94528cf87bc1: Waiting
6163cb122752: Waiting
37008765f419: Waiting
827bef93144e: Waiting
c6313663a00a: Waiting
37008765f419: Mounted from nameserverdns/docker_update/bind
827bef93144e: Mounted from nameserverdns/docker_update/bind
c6313663a00a: Mounted from nameserverdns/docker_update/bind
9ac1877b4700: Mounted from nameserverdns/docker_update/bind
94528cf87bc1: Mounted from nameserverdns/docker_update/bind
fd966f87db4b: Pushed
6163cb122752: Mounted from nameserverdns/docker_update/bind
20260728: digest: sha256:a081dd45c21dbd13bf4225be4174c9d15894f8116bd7fd71afc7b17b52de36ae size: 856
docker tag harbor.domain.com/nameserverdns/dev/bind:20260728 harbor.domain.com/nameserverdns/dev/bind:88e41d71
docker push harbor.domain.com/nameserverdns/dev/bind:88e41d71
The push refers to repository [harbor.domain.com/nameserverdns/dev/bind]
fd966f87db4b: Waiting
827bef93144e: Waiting
37008765f419: Waiting
9ac1877b4700: Waiting
ca2678b20700: Waiting
c6313663a00a: Waiting
94528cf87bc1: Waiting
6163cb122752: Waiting
827bef93144e: Layer already exists
37008765f419: Layer already exists
9ac1877b4700: Layer already exists
ca2678b20700: Layer already exists
c6313663a00a: Layer already exists
94528cf87bc1: Layer already exists
6163cb122752: Layer already exists
fd966f87db4b: Already exists
unknown: unexpected status from HEAD request to https://harbor.domain.com/v2/nameserverdns/dev/bind/manifests/sha256:90f9ecd1b09d1d122ec06451cb8a858797b710d351062508922414ac33c35664: 412 Precondition Failed
So the first image push works, the image doesn't have any Critical vulnerabilities (the "Prevent vulnerable images from running." is set to Critical, so this should work.
Steps to reproduce the problem:
- Create a new Project
- Go to the project's Configuration zone and enable
Prevent vulnerable images from running, setting it to Critical
- Push a non-vulnerable / lower than critical vulnerable image
- Retag that image as something and push it again to the same repo
- Error
Versions:
Please specify the versions of following systems.
- harbor version: [2.14.0]
- docker engine version: [29.6.2, build dfc4efb]
- docker-compose version: [v5.3.1]
This seems to be somewhat related to #15056 and maybe #15283 ?
Mentioning the colleague who found this so he's also following this issue: @DanCruceat
Thank you!
If you are reporting a problem, please make sure the following information are provided:
Expected behavior and actual behavior:
Jenkins log:
So the first image push works, the image doesn't have any Critical vulnerabilities (the "Prevent vulnerable images from running." is set to
Critical, so this should work.Steps to reproduce the problem:
Prevent vulnerable images from running, setting it toCriticalVersions:
Please specify the versions of following systems.
This seems to be somewhat related to #15056 and maybe #15283 ?
Mentioning the colleague who found this so he's also following this issue: @DanCruceat
Thank you!