The error message you're encountering indicates that the Docker push is failing because the tag does not exist in the target registry. This is likely due to an issue with the registry path, tag format, or permissions. Let's break down the problem and solutions step by step.
Key Observations from Logs
Registry Path:
The push is targeting registry.host.k3d.internal:8443/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/gs:1751550174.
The UUIDs (00000000-0000...) in the path may be placeholders or invalid, causing the registry to reject the push.
The gs:1751550174 tag is a timestamp, which is valid but uncommon. Ensure this is intentional.
Error:
The message tag does not exist suggests the registry expects the repository path or tag to be pre-configured, or there's a permissions issue.
Common Fixes
1. Verify the Registry Path and Tag
Ensure the registry path and tag are correctly formatted and valid for your registry:
Repository Path:
Replace the UUIDs (00000000-0000...) with a valid project or application name. For example:
If the UUIDs are part of a naming convention, ensure they are valid in your registry.
Tag Format:
The tag 1751550174 (a timestamp) is valid, but confirm it matches your registry's allowed tag patterns.
2. Check Permissions
Ensure your Docker client has write permissions to the target registry path.
If using k3d (Kubernetes in Docker), verify the registry configuration and credentials.
Test pushing to a different registry path (e.g., Docker Hub) to isolate the issue.
3. Build and Push with Correct Flags
Ensure your build and push commands explicitly target ARM64 and use the correct registry path.
User
Hi what about this error from dockerClient push method in my golang app:
container-registry.go:27: Building arm64 docker image: registry.host.k3d.internal:8443/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/gs:1751553575
container-registry.go:55: {"stream":"Step 1/6 : FROM ubuntu:24.04"}
container-registry.go:55: {"stream":"\n"}
container-registry.go:55: {"stream":" ---\u003e 440dcf6a5640\n"}
container-registry.go:55: {"stream":"Step 2/6 : RUN apt-get update \u0026\u0026 apt-get upgrade -y \u0026\u0026 apt-get install -y ca-certificates"}
container-registry.go:55: {"stream":"\n"}
container-registry.go:55: {"stream":" ---\u003e Running in 2dd6f0fd9c1e\n"}
container-registry.go:55: {"stream":"Get:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease [256 kB]\n"}
container-registry.go:55: {"stream":"Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [126 kB]\n"}
container-registry.go:55: {"stream":"Get:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease [126 kB]\n"}
container-registry.go:55: {"stream":"Get:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease [126 kB]\n"}
container-registry.go:55: {"stream":"Get:5 http://ports.ubuntu.com/ubuntu-ports noble/multiverse arm64 Packages [274 kB]\n"}
container-registry.go:55: {"stream":"Get:6 http://ports.ubuntu.com/ubuntu-ports noble/universe arm64 Packages [19.0 MB]\n"}
container-registry.go:55: {"stream":"Get:7 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 Packages [1776 kB]\n"}
container-registry.go:61: Pushing image: registry.host.k3d.internal:8443/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/gs:1751553575
container-registry.go:71: Login response status: Login Succeeded
container-registry.go:110: [] The push refers to repository [registry.host.k3d.internal:8443/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000/gs]
container-registry.go:110: [] no suitable image manifest found for platform linux/arm64
container-registry.go:130:
Assistant
The error no suitable image manifest found for platform linux/arm64 indicates that the Docker registry is unable to find an image manifest (metadata) for the ARM64 architecture when you try to push or pull the image. This typically occurs because the image was built for a different architecture (e.g., amd64/x86_64) or the manifest is missing ARM64 support. Let’s break down the problem and fix it step-by-step.
Key Observations from Logs
Architecture Mismatch:
The error explicitly states that the registry expects an image for linux/arm64 but found none. This means the image you built likely lacks support for ARM64.
Build Process:
The logs show steps from ubuntu:24.04, which supports ARM64, but the final image might not have been built for that platform.
Manifest Issue:
The registry requires a multi-architecture (manifest list) or a single-architecture image explicitly tagged for arm64.
Solutions
1. Build the Image for ARM64 Using docker buildx
The standard docker build command defaults to the host architecture (e.g., amd64). To build for ARM64, use docker buildx with the --platform flag:
--platform linux/arm64 ensures the image is built for ARM64.
--push automatically pushes the image after building.
Replace your-project/your-app with your actual registry path (avoid UUIDs if they’re placeholders).
2. Verify the Dockerfile for ARM64 Compatibility
Ensure your Dockerfile builds the ARM64 binary of your Go app. For example:
dockerfile
User
when in my golang app I build image with a tag is it possible to validate after that it exist ?
Assistant
Yes, you can validate whether a Docker image exists (locally or in a registry) after building it with a specific tag. Here's how to do it in a Go application using different methods:
1. Check Locally (Docker Daemon)
To check if an image exists locally on your machine, you can use the Docker SDK for Go or run docker image inspect via a subprocess.
can you make this better english please: Purpose of this PR is to cover e2e for arm64 support. At this moment in time we do not have arm64 based simple-game-server image added. Test are using on fly image build and push which once available at later date will be replace with image from container-registry like we do for amd64 one.
Assistant
Here’s a revised version of your text with improved clarity and grammar:
Revised Version:
"The purpose of this PR is to implement end-to-end testing for ARM64 support. At present, the ARM64-based simple-game-server image has not yet been added. For now, the tests use an on-the-fly image build and push process. Once the ARM64 image becomes available in the container registry (as we do for the amd64 version), this temporary setup will be replaced with the registry-hosted image."
Key Improvements:
Clarity and Flow:
Replaced vague phrases like "cover e2e" with "implement end-to-end testing."
Simplified "at this moment in time" to "at present."
Structured the explanation to clarify the current workaround and future plan.
Technical Terminology:
Used consistent capitalization for "ARM64" (standard in tech contexts).
Added quotes around the image name (simple-game-server) for clarity.
Specified "registry-hosted image" to align with standard practices.
Grammar and Structure:
Fixed minor errors (e.g., "Test are" → "tests use").
Split long sentences into shorter, clearer ones.
Added parentheses to explain the comparison with the amd64 setup.
The error might be due to a misconfigured registry (e.g., k3d). Check the registry's logs for more details:
bash
# For k3d, check the registry container logs:
docker logs k3d-registry
5. Ensure the Registry Exists
Some registries require the repository path to exist before pushing. If your registry enforces this:
Log in to the registry UI.
Create the repository path (e.g., your-project/your-app).
6. Validate the Dockerfile
Ensure your Dockerfile works for ARM64 and does not exit prematurely. For example:
dockerfile
# Example Dockerfile for Golang ARM64
FROM golang:1.21-bullseye AS builder
WORKDIR /app
COPY . .
RUN GOOS=linux GOARCH=arm64 go build -o main
FROM debian:bullseye-slim-arm64
COPY --from=builder /app/main /usr/local/bin/app
CMD ["app"]
Troubleshooting Steps
Test with a Simplified Image:
Build a minimal image (e.g., hello-world) and push it to the same registry path to isolate the issue.
bash
docker pull hello-world:arm64
docker tag hello-world:arm64 registry.host.k3d.internal:8443/test/hello-world:latest
docker push registry.host.k3d.internal:8443/test/hello-world:latest
Check Network Connectivity:
Ensure your Docker client can reach the registry at registry.host.k3d.internal:8443.
Update Tools:
Ensure docker, docker-compose, and k3d (if used) are up-to-date.
Final Notes
The error tag does not exist is often caused by an invalid registry path or permissions.
If using k3d, ensure the registry is properly exposed and configured.
Replace UUIDs in the path with meaningful names unless required by your workflow.
Let me know if you need help with a specific step!
# Use an ARM64 base image for the builder stage
FROM golang:1.21-bullseye AS builder
WORKDIR /app
COPY . .
RUN GOOS=linux GOARCH=arm64 go build -o main
# Use an ARM64 base image for the final stage
FROM debian:bullseye-slim-arm64
COPY --from=builder /app/main /usr/local/bin/app
CMD ["app"]
The golang:1.21-bullseye image supports ARM64.
The GOARCH=arm64 flag ensures the Go binary is built for ARM64.
The final stage uses a slim ARM64 Debian image.
3. Check the Base Image’s Architecture
Ensure the base image (ubuntu:24.04) supports ARM64. Most official images do, but verify with:
bash
docker run --rm --platform linux/arm64 ubuntu:24.04 uname -m
This should output aarch64 (ARM64).
4. Use a Multi-Architecture Manifest (Optional)
If you need the image to support multiple architectures (e.g., amd64 and arm64), create a manifest list:
bash
# Build for both architectures
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t registry.host.k3d.internal:8443/your-project/your-app:1751553575 \
-f Dockerfile \
--push .
5. Validate the Built Image
Check if the image includes the ARM64 architecture: