Closed dlmw closed 2 days ago
Thanks for the bug report! Are there any logs that you would be able to provide from your Gitea instance associated with you pushing to your registry?
2024/07/07 08:32:03 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/dlmw/minecraft/blobs/uploads/ for 10.0.0.2:0, 401 Unauthorized in 1.1ms @ packages/api.go:42(packages.ContainerRoutes.func2.1.reqPackageAccess.4)
2024/07/07 08:32:03 ...eb/routing/logger.go:102:func1() [I] router: completed POST /v2/dlmw/minecraft/blobs/uploads/ for 10.0.0.2:0, 401 Unauthorized in 1.1ms @ packages/api.go:42(packages.ContainerRoutes.func2.1.reqPackageAccess.4)
I think those are the relevant ones.
You need to supply a PAT to authenticate yourself to Gitea (this has nothing to do with Docker). Your token needs either packages.Read
or packages.Write
permission, in this case probably write, and you must be allowed to push a package to the given user.,
How do I do that if it's not related to Docker?
Thank you. A bit off-topic but is there a way to push an image to a repository instead of a user?
No, but you can link a package to a repo once it has been pushed.
Description
I successfully logged in to my user with
docker login
. I logged in with my usual username/password. When I push the image, I get the errorunauthorized: reqPackageAccess
.What's the issue?
Gitea Version
1.22.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker Swarm
Database
PostgreSQL