# pushing docker.compose.yml with image from private repository fails.

**URL:** <https://forums.balena.io/t/pushing-docker-compose-yml-with-image-from-private-repository-fails/369482>\
**Category:** Product support\
**Created:** [December 6, 2023, 7:28pm UTC](https://forums.balena.io/t/pushing-docker-compose-yml-with-image-from-private-repository-fails/369482 "2023-12-06T19:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 11, 2023, 12:36pm UTC](https://forums.balena.io/t/pushing-docker-compose-yml-with-image-from-private-repository-fails/369482/2 "2023-12-11T12:36:34Z")

</div>

Hello @Ravil

Could you please share more details how what does not work for you?

In the meantime, find here some examples that maybe can give you ideas

> [@Secrets file format Azure Container Registry](https://forums.balena.io/t/secrets-file-format-azure-container-registry/354170):
>
> I would like to pull an image from a private Azure Container Registry I followed the documentation but it doesn’t seem to work. Can someone confirm if this is the correct format for ACR? 'company.azurecr.io': username: \<Enterprise Application App ID\> password: \<Secret created for the application\> When I use the username an password with docker login it just works. When I pass it with a secret.yml to balena push it doesn’t. So my guess is some formatting of the file.

Or this repo, however for Google Container Registry insted of Azure.

> **[GitHub - balena-io-examples/sample-gcr-registry-secrets: Sample balena...](https://github.com/balena-io-examples/sample-gcr-registry-secrets)**
>
> Sample balena push/deploy with Google Container Registry (GCR) private images - GitHub - balena-io-examples/sample-gcr-registry-secrets: Sample balena push/deploy with Google Container Registry (GC...

---

_[View the full topic](https://forums.balena.io/t/pushing-docker-compose-yml-with-image-from-private-repository-fails/369482)._
