# Does the Docker Update Module work with private DockerHub repositories?

**URL:** <https://hub.mender.io/t/does-the-docker-update-module-work-with-private-dockerhub-repositories/1057>\
**Category:** General Discussions\
**Created:** [June 12, 2019, 8:00pm UTC](https://hub.mender.io/t/does-the-docker-update-module-work-with-private-dockerhub-repositories/1057 "2019-06-12T20:00:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nofurey](https://avatars.discourse-cdn.com/v4/letter/n/f04885/32.png) [@nofurey](https://hub.mender.io/u/nofurey)\
**Post date:** [June 12, 2019, 8:00pm UTC](https://hub.mender.io/t/does-the-docker-update-module-work-with-private-dockerhub-repositories/1057/1 "2019-06-12T20:00:58Z")

</div>

Does this modules work with docker images stored in private DockerHub repositories?

---

<div class="post-metadata">

**Author:** ![QuentinVecchio](https://avatars.discourse-cdn.com/v4/letter/q/da6949/32.png) [@QuentinVecchio](https://hub.mender.io/u/QuentinVecchio)\
**Post date:** [June 13, 2019, 7:20am UTC](https://hub.mender.io/t/does-the-docker-update-module-work-with-private-dockerhub-repositories/1057/2 "2019-06-13T07:20:16Z")

</div>

Yes it works with private DockerHub repositories as well. For example:  
DOCKER\_IMAGES=“your-registry:5000/your-image”

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [June 14, 2019, 8:01am UTC](https://hub.mender.io/t/does-the-docker-update-module-work-with-private-dockerhub-repositories/1057/3 "2019-06-14T08:01:19Z")

</div>

Hi @nofurey and @QuentinVecchio and welcome to the Mender Hub community.

The Update Module itself will just “pull” whatever you have specified in DOCKER\_IMAGES.

So as @QuentinVecchio is pointing out, it will work with private registry as long as the device has access to such registry. If the registry requires authentication, the device will need to perform `docker login` prior to the containers update.

The [source code](https://github.com/mendersoftware/mender/blob/master/support/modules/docker) is very simple, as this module is meant to be easily extensible. So do not hesitate to do you own extensions and share them back to the community 😉

Lluís
