# Prebuilt image with DHI results to unsuccessfull balena push

**URL:** <https://forums.balena.io/t/prebuilt-image-with-dhi-results-to-unsuccessfull-balena-push/375365>\
**Category:** Product support\
**Tags:** docker\
**Created:** [January 12, 2026, 10:55am UTC](https://forums.balena.io/t/prebuilt-image-with-dhi-results-to-unsuccessfull-balena-push/375365 "2026-01-12T10:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iznogohul](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@Iznogohul](https://forums.balena.io/u/Iznogohul)\
**Post date:** [January 12, 2026, 10:55am UTC](https://forums.balena.io/t/prebuilt-image-with-dhi-results-to-unsuccessfull-balena-push/375365/1 "2026-01-12T10:55:09Z")

</div>

Trying to migrate from caddy:alpine to [dhi.io/caddy:2.10-debian13](http://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:

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

```

DockerCompose: \*

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

```

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [January 12, 2026, 8:12pm UTC](https://forums.balena.io/t/prebuilt-image-with-dhi-results-to-unsuccessfull-balena-push/375365/2 "2026-01-12T20:12:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Iznogohul](https://avatars.discourse-cdn.com/v4/letter/i/49beb7/32.png) [@Iznogohul](https://forums.balena.io/u/Iznogohul)\
**Post date:** [January 13, 2026, 9:14am UTC](https://forums.balena.io/t/prebuilt-image-with-dhi-results-to-unsuccessfull-balena-push/375365/3 "2026-01-13T09:14:08Z")

</div>

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

```auto
[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:

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

```

Balena builder throws:

```auto
[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:

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

```
