Open vicalloy opened 1 year ago
Duplicate of #25893?
Duplicate of #25893?
not the same problam. My problam is can't push the image to gitea. You can try it with the follow scripts. This script will retag the alpine images and push it to gitea.
retag.sh
BASE=alpine
MULTI_ARCH_TAG=latest
IMAGE=${BASE}:${MULTI_ARCH_TAG?}
SOURCES=$(docker manifest inspect ${IMAGE} | \
jq -r '.manifests[].digest | sub("^"; "'${BASE}'@")')
# push to docker.io can be success
# docker buildx imagetools create --dry-run -t vicalloy/alpine:latest $SOURCES
# docker buildx imagetools create -t vicalloy/alpine:latest $SOURCES
# push to gitea will fail.
docker buildx imagetools create --dry-run -t git.sf.tech/sf/alpine:latest $SOURCES
docker buildx imagetools create -t git.sf.tech/sf/alpine:latest $SOURCES
Output
=> ERROR [internal] pushing git.sf.tech/sf/alpine:latest 17.4s
------
> [internal] pushing git.sf.tech/sf/alpine:latest:
#0 0.001 copying sha256:5febc00b4d2a84af2a077bc34ea90659b6570110a54253f19c5dca8164b1dbf6 from docker.io/library/alpine@sha256:5febc00b4d2a84af2a077bc34ea90659b6570110a54253f19c5dca8164b1dbf6 to git.sf.tech/sf/alpine:latest
#0 0.001 copying sha256:c5c5fda71656f28e49ac9c5416b3643eaa6a108a8093151d6d1afc9463be8e33 from docker.io/library/alpine@sha256:c5c5fda71656f28e49ac9c5416b3643eaa6a108a8093151d6d1afc9463be8e33 to git.sf.tech/sf/alpine:latest
#0 0.001 copying sha256:f748290eb66ad6f938e25dd348acfb3527a422e280b7547b1cdfaf38d4492c4b from docker.io/library/alpine@sha256:f748290eb66ad6f938e25dd348acfb3527a422e280b7547b1cdfaf38d4492c4b to git.sf.tech/sf/alpine:latest
#0 0.001 copying sha256:16e86b2388774982fbdf230101a72201691b1f97cb0066c2099abf30dd7e6d59 from docker.io/library/alpine@sha256:16e86b2388774982fbdf230101a72201691b1f97cb0066c2099abf30dd7e6d59 to git.sf.tech/sf/alpine:latest
#0 0.001 copying sha256:b312e4b0e2c665d634602411fcb7c2699ba748c36f59324457bc17de485f36f6 from docker.io/library/alpine@sha256:b312e4b0e2c665d634602411fcb7c2699ba748c36f59324457bc17de485f36f6 to git.sf.tech/sf/alpine:latest
#0 0.001 copying sha256:1fd62556954250bac80d601a196bb7fd480ceba7c10e94dd8fd4c6d1c08783d5 from docker.io/library/alpine@sha256:1fd62556954250bac80d601a196bb7fd480ceba7c10e94dd8fd4c6d1c08783d5 to git.sf.tech/sf/alpine:latest
#0 0.001 copying sha256:c75ede79e457d6454bca6fc51967a247a4b9daff9f31197cfbef69b1a651cada from docker.io/library/alpine@sha256:c75ede79e457d6454bca6fc51967a247a4b9daff9f31197cfbef69b1a651cada to git.sf.tech/sf/alpine:latest
#0 17.43 pushing sha256:4574f3bce030b977c51d861bea49adf4855c44ab32d67ac5d19bc875b75c6755 to git.sf.tech/sf/alpine:latest
------
ERROR: failed commit on ref "index-sha256:4574f3bce030b977c51d861bea49adf4855c44ab32d67ac5d19bc875b75c6755": unexpected status: 404 Not Found
I can see the image in pkg, but only have one platform and size is not correct and can't pull it.
docker pull git.sf.tech/sf/alpine:latest
Error response from daemon: failed to resolve reference "git.sf.tech/sf/alpine:latest": failed to do request: Head "https://git.sf.tech/v2/sf/alpine/manifests/latest": EOF
same issue
Same issue
Description
system: MacOS 13.4.1 (c) docker desktop: 4.19.0 (106363)
Gitea Version
1.20.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Linux version 4.4.302+
How are you running Gitea?
Database
None