# Can I upload a Docker image to AWS ECR and use it for OTA when creating a Docker artifact?

**URL:** <https://hub.mender.io/t/can-i-upload-a-docker-image-to-aws-ecr-and-use-it-for-ota-when-creating-a-docker-artifact/7090>\
**Category:** General Discussions\
**Tags:** docker, mender-artifact\
**Created:** [August 12, 2024, 7:55am UTC](https://hub.mender.io/t/can-i-upload-a-docker-image-to-aws-ecr-and-use-it-for-ota-when-creating-a-docker-artifact/7090 "2024-08-12T07:55:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vimoxshah](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/vimoxshah/32/2406_2.png) [@vimoxshah](https://hub.mender.io/u/vimoxshah)\
**Post date:** [August 12, 2024, 7:55am UTC](https://hub.mender.io/t/can-i-upload-a-docker-image-to-aws-ecr-and-use-it-for-ota-when-creating-a-docker-artifact/7090/1 "2024-08-12T07:55:49Z")

</div>

Current process involves uploading a Docker image to Docker Hub and using it for deployment when creating a Docker artifact. But We use AWS ECR so wondering can we use ECR or we have to docker hub for our application docker image.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [August 12, 2024, 8:20am UTC](https://hub.mender.io/t/can-i-upload-a-docker-image-to-aws-ecr-and-use-it-for-ota-when-creating-a-docker-artifact/7090/2 "2024-08-12T08:20:17Z")

</div>

Hi @vimoxshah,

There is no limitation in the Mender Client in where it pulls a Docker image from. To my understanding, the Docker Update Module also is registry agnostic (see [mender/support/modules/docker at master · mendersoftware/mender · GitHub](https://github.com/mendersoftware/mender/blob/master/support/modules/docker)), so if your device respectively development host have the required configuration and login, I don’t see any immediate problem.

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![vimoxshah](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/vimoxshah/32/2406_2.png) [@vimoxshah](https://hub.mender.io/u/vimoxshah)\
**Post date:** [August 12, 2024, 8:28am UTC](https://hub.mender.io/t/can-i-upload-a-docker-image-to-aws-ecr-and-use-it-for-ota-when-creating-a-docker-artifact/7090/3 "2024-08-12T08:28:31Z")

</div>

Okay. But while creating the artifact It tries to pull the image from docker hub. I am checking this [mender/support/modules-artifact-gen/docker-artifact-gen at master · mendersoftware/mender · GitHub](https://github.com/mendersoftware/mender/blob/master/support/modules-artifact-gen/docker-artifact-gen#L130)

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [August 12, 2024, 8:34am UTC](https://hub.mender.io/t/can-i-upload-a-docker-image-to-aws-ecr-and-use-it-for-ota-when-creating-a-docker-artifact/7090/4 "2024-08-12T08:34:54Z")

</div>

Hi @vimoxshah,

Just adjust the generation scripts to your use case then. They’re not set in stone 🙂 The only important thing about them is keeping the resulting artifact and metadata format stable.

Alternatively, you can create a fully custom Update Module which implements whichever flow your scenario requires.

Greetz,  
Josef
