Open oxbee opened 1 month ago
This looks similar to #30973
As stated in #27640, the bug seems to be relayed to MacOS docker client.
A functional workaround is to build an image without Provenance attestations:
docker build --provenance false -t gitea.djmil.dev/djmil/dtest:no_provenance .
And here is my little image with all it's layers 🥳
Until the bug solved, maybe it worth mentioning this workaround as known bugs
in the Container Registry documentation? @kemzeb is this a thing at the project? If yes, i would gladly do it.
Any way, i do hope people would be able google this workaround report by keywords:
"createPackageAndVersion() [E] Error inserting package: Error 1062 (23000): Duplicate entry 'some_tag_name' for key 'package_version.UQE_package_version_s'"
Until the bug solved, maybe it worth mentioning this workaround as known bugs in the Container Registry documentation? @kemzeb is this a thing at the project? If yes, i would gladly do it.
Looking at the Gitea documentation and the source, this does not appear to be a common practice.
If you wish, you could either discuss this on Discord or send a quick PR editing this page to see what others think about adding this section.
Description
I want to use Gitea Packages as a Docker registry for one of my repos.
The cause of an error seems to be this line:
Non the less, the image seems to appear on the server. It also seems that most of the times I'am able to
docker pull
it..Gitea Version
1.22
Can you reproduce the bug on the Gitea demo site?
No (not supported)
Log Gist
https://gist.github.com/oxbee/40ec1dce3a2cba34066f3a72a88335ab
Screenshots
Git Version
the one shipped with docker image
Operating System
MacOS Ventura 13.6.7
How are you running Gitea?
Official docker compose file with zero tweaks
Database
MySQL/MariaDB