Prebuilt image with DHI results to unsuccessfull balena push

Trying to migrate from caddy:alpine to dhi.io/caddy:2.10-debian13 so the image is better prepared for the CRA compliance etc etc but for some reason even with –nocache i get this:
[Error] Some services failed to build:
[Error] Service: proxy
[Error] Error: failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header

Dockerfile:

FROM dhi.io/caddy:2.10-debian13
COPY Caddyfile /etc/caddy/Caddyfile

DockerCompose: *

  proxy:
    image: <deducted>/proxy:latest
    network_mode: host 
    depends_on:
      - <deducted>
      - <deducted>

Hello,

Is there more to your Dockerfile or the image referenced in your docker-compose (are they one and the same?) Is there a tar or unzip command in either? This can often indicate a lack of disk space on the device too.

They are the same nothing more in my Dockerfile and no tar or unzip commands.

From what I am observing is that when i use build/context in the docker compose the balena builder fails to build the image as it is not authorized to pull images from

[proxy] Head “https://dhi.io/v2/caddy/manifests/2”: unauthorized: authentication required

And if I prebuild the image from my local pc and push it to dockerhub with:

docker buildx build --provenance=true --sbom=true --tag <deducted>/proxy:latest -f Dockerfile . --push

Balena builder throws:

[Error] Service: proxy
[Error] Error: failed to register layer: Error processing tar file(exit status 1): archive/tar: invalid tar header

Command to perform balena push was:

balena push <deducted>/internalfleet --registry-secrets ../.registry-secrets.yml -m