# Deploy Fails - Unable to extract image digest

**URL:** <https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474>\
**Category:** Product support\
**Tags:** balena-cli\
**Created:** [January 29, 2025, 6:31pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474 "2025-01-29T18:31:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![adhilton](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@adhilton](https://forums.balena.io/u/adhilton)\
**Post date:** [January 29, 2025, 6:31pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/1 "2025-01-29T18:31:46Z")

</div>

I’m attempting to create a new release with a command that I’ve been using successfully for the last several years.

```sh
balena deploy edo/development --registry-secrets=../../credentials.yml --build --debug

```

Regardless of what I try, I’ve been getting `Deploy failed` with the following error…

```auto
Unable to extract image digest (content hash) from image upload progress stream for image:
registry2.balena-cloud.com/v2/d408ca4c4855811636fc5c3cefe699d9:latest

ExpectedError: Unable to extract image digest (content hash) from image upload progress stream for image:
registry2.balena-cloud.com/v2/d408ca4c4855811636fc5c3cefe699d9:latest
    at pushImage (C:\Program Files\balena-cli\client\build\utils\compose_ts.js:698:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 1)
    at async inspectAndPushImage (C:\Program Files\balena-cli\client\build\utils\compose_ts.js:710:42)
    at async Promise.all (index 4)
    at async pushAndUpdateServiceImages (C:\Program Files\balena-cli\client\build\utils\compose_ts.js:739:9)
    at async pushServiceImages (C:\Program Files\balena-cli\client\build\utils\compose_ts.js:748:5)
    at async C:\Program Files\balena-cli\client\build\utils\compose_ts.js:789:17
    at async awaitInterruptibleTask (C:\Program Files\balena-cli\client\build\utils\helpers.js:283:16)
    at async deployProject (C:\Program Files\balena-cli\client\build\utils\compose_ts.js:787:13)
    at async DeployCmd.deployProject (C:\Program Files\balena-cli\client\build\commands\deploy\index.js:146:27)
    at async DeployCmd.run (C:\Program Files\balena-cli\client\build\commands\deploy\index.js:50:25)
    at async DeployCmd._run (C:\Program Files\balena-cli\client\node_modules\@oclif\core\lib\command.js:312:22)
    at async Config.runCommand (C:\Program Files\balena-cli\client\node_modules\@oclif\core\lib\config\config.js:435:25)
    at async run (C:\Program Files\balena-cli\client\node_modules\@oclif\core\lib\main.js:95:16)
    at async C:\Program Files\balena-cli\client\build\app.js:78:13

```

I’m running this on a Windows 11 laptop. I’ve completely uninstalled/reinstalled Docker, tried going back to HyperV from WSL 2, tried different networks, and all attempted have yielded the same error.

I see [this](https://forums.balena.io/t/unable-to-extract-image-digest-content-hash/372401) similar post from a couple months ago, but the ‘solution’ was to use Linux, which to me isn’t a valid solution to the problem.

Any ideas?

Edit: If I use a Linux VM I’m able to deploy this release which to me rules out any configuration errors with the release itself.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [January 30, 2025, 11:21am UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/2 "2025-01-30T11:21:02Z")

</div>

Hello @adhilton first of all welome to the balena community!

Could you please confirm the version of the balena CLI that you are using in Windows?

Thanks!

---

<div class="post-metadata">

**Author:** ![adhilton](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@adhilton](https://forums.balena.io/u/adhilton)\
**Post date:** [January 30, 2025, 3:17pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/3 "2025-01-30T15:17:35Z")

</div>

Hi @mpous,

Thank you for the response. I’m currently using 20.2.3. I also tested with 20.1.2, which was previously working for me, but that also currently yields the same error.

Thanks!

---

<div class="post-metadata">

**Author:** ![shaunmulligan1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan1/32/9857_2.png) [@shaunmulligan1](https://forums.balena.io/u/shaunmulligan1)\
**Post date:** [January 31, 2025, 4:47pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/4 "2025-01-31T16:47:08Z")

</div>

hi @adhilton , what version of docker desktop are you running on windows and did you recently update it? It sounds like very recently docker has changed the default for docker to start using buildKit for their builds ([BuildKit on Windows After Docker Update · Issue #4594 · moby/buildkit · GitHub](https://github.com/moby/buildkit/issues/4594)) this I think breaks our CLI as the underlying library we use to interact with the docker engine doesn’t yet support buildkit. Could you check that buildkit is disabled in your docker engine settings and if it is not could you disable it. It should be possible to do this from the docker desktop engine settings page, see image below:

 ![buildkit-disable](https://global.discourse-cdn.com/balena/original/2X/0/0a064e1b81c4e093905526cd1f38d80d73207c1f.png)

---

<div class="post-metadata">

**Author:** ![adhilton](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@adhilton](https://forums.balena.io/u/adhilton)\
**Post date:** [January 31, 2025, 5:28pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/5 "2025-01-31T17:28:10Z")

</div>

Hi @shaunmulligan1,

Thank you for looking into that. I’m currently using Docker Engine v27.5.1 with Docker Desktop v4.38.0.

I just tested with the following settings but that unfortunately yielded the same result.

```json
{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "features": {
    "buildKit": false
  }
}

```

Note that in your screenshot, you had `buildKit: true`. I assume that you meant false, but I went ahead and tested both ways (restarting everything after changes). Enabled and disabled yielded the same results.

---

<div class="post-metadata">

**Author:** ![Frank700](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Frank700](https://forums.balena.io/u/Frank700)\
**Post date:** [April 11, 2025, 8:35pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/6 "2025-04-11T20:35:07Z")

</div>

I just got this as well, and I’m unable to deploy any builds at the moment. I tested against two different fleets, as well as testing clean rebuilds. The one thing that does occur to me is that I just updated my MacOS version, but I got a successful build out prior to this. I did also try with the buildKit change, but with no luck

---

<div class="post-metadata">

**Author:** ![fossejc](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@fossejc](https://forums.balena.io/u/fossejc)\
**Post date:** [July 10, 2025, 12:43pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/7 "2025-07-10T12:43:10Z")

</div>

Hi, I encounter the same issue while trying to deploy on macOS Sequoia 15.5 and Balena CLI 22.1.1

Were you able to solve this issue ?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![philletourneau](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/philletourneau/32/2471_2.png) [@philletourneau](https://forums.balena.io/u/philletourneau)\
**Post date:** [September 7, 2025, 3:54am UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/8 "2025-09-07T03:54:54Z")

</div>

I’m having the issue on macOS 15.5 and Balena CLI 22.4.1, using Docker Desktop 4.45.0

---

<div class="post-metadata">

**Author:** ![adhilton](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@adhilton](https://forums.balena.io/u/adhilton)\
**Post date:** [November 19, 2025, 4:16pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/9 "2025-11-19T16:16:38Z")

</div>

@shaunmulligan1 Any ideas here? It seems like other people are experiencing this as well. I still haven’t been able to solve this. My only solution has been to deploy through a Ubuntu VM. I switched to a new laptop, clean install of everything and still have the same problem.

---

<div class="post-metadata">

**Author:** ![tmellamts](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@tmellamts](https://forums.balena.io/u/tmellamts)\
**Post date:** [November 25, 2025, 9:38am UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/10 "2025-11-25T09:38:51Z")

</div>

We’ve been experiencing the same issue and done some investigations. Interestingly we have run the same Balena deploy command on two different CI runners with seemingly the same versions and yet one fails and the other doesn’t, we aren’t 100% sure what is differing.

However, what seems to be throwing the is the `docker-progress` which is used by the balena-cli. Specifically the `tryExtractDisgestHash()` method.

See: [docker-progress/lib/index.ts at master · balena-io-modules/docker-progress · GitHub](https://github.com/balena-io-modules/docker-progress/blob/master/lib/index.ts#L62)

We captured the push stream in the failing case, and we noticed that the format being outputted is:

```auto
{
  "progressDetail": {},
  "aux": {
    "manifestPushedInsteadOfIndex": true,
    "originalIndex": {
      "mediaType": "application/vnd.oci.image.index.v1+json",
      "digest": "sha256:3f63d4239c0261cd43305d8d1e8160e7731c6f012e8a375b66a976addb08e433",
      "size": 856
    },
    "selectedManifest": {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:81b69fbe21d65854333b11b111d1456666162321af566c244bb19c912fd8170c",
      "size": 8836,
      "platform": {"architecture": "arm64", "os": "linux"}
    }
  }
}

```

Note that `evt.aux.Digest` does not exist and we have now `evt.aux.selectedManifest.digest`

**We don’t however actually know what causes Docker to use one format over another given we’ve tried disabling and enabling buildkit with no luck**. We tested with seemingly identical versions on two different runners with differing outcomes:

```auto
- Docker Engine 29.0.2 (same API version)
- Buildx v0.30.0
- BuildKit v0.25.2
- balena-cli 22.5.5

```

We’ve not really had the time to look into this further, \*\*we are also at this time (given the lack of further time we can dedicate to investigating) unable to justify whether a change to docker-process is the best course of action.  
\*\*  
@shaunmulligan1 We have also tried disabling buildkit but also with no luck. Any hints here?

---

<div class="post-metadata">

**Author:** ![thgreasi](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thgreasi/32/454_2.png) [@thgreasi](https://forums.balena.io/u/thgreasi)\
**Post date:** [December 29, 2025, 4:51pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/11 "2025-12-29T16:51:25Z")

</div>

Hi all,

I would like to let you know that we just released balena-cli v23.2.13 which has been updated to be able to properly detect the events emitted from the latest docker & docker-desktop’s embedded version.

Let us know how that works for you and whether it fixes the issue you were facing.

Kind regards,

Thodoris

---

<div class="post-metadata">

**Author:** ![adhilton](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@adhilton](https://forums.balena.io/u/adhilton)\
**Post date:** [January 6, 2026, 3:40pm UTC](https://forums.balena.io/t/deploy-fails-unable-to-extract-image-digest/373474/12 "2026-01-06T15:40:49Z")

</div>

Just tried with 23.2.14 and a deployment worked without issue. Thanks!
