# How to Force rebuild of image? (docker build --no-cache --pull)

**URL:** <https://renku.discourse.group/t/how-to-force-rebuild-of-image-docker-build-no-cache-pull/994>\
**Category:** RenkuLab\
**Created:** [13 February 2024 09:22 UTC](https://renku.discourse.group/t/how-to-force-rebuild-of-image-docker-build-no-cache-pull/994 "2024-02-13T09:22:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carloferrigno](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@carloferrigno](https://renku.discourse.group/u/carloferrigno)\
**Post date:** [13 February 2024 09:22 UTC](https://renku.discourse.group/t/how-to-force-rebuild-of-image-docker-build-no-cache-pull/994/1 "2024-02-13T09:22:06Z")

</div>

Hello. Is there a way to force the building of an image? I changed some repositories used for pip packages, but for various reasons of nested dependencies, this cannot be straightforwardly propagated to the dockerfile/requirements. I see the options --no-cache --pull exist for docker build to achieve this.

---

<div class="post-metadata">

**Author:** ![rrrrrok](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/rrrrrok/32/117_2.png) [@rrrrrok](https://renku.discourse.group/u/rrrrrok)\
**Post date:** [22 February 2024 12:56 UTC](https://renku.discourse.group/t/how-to-force-rebuild-of-image-docker-build-no-cache-pull/994/2 "2024-02-22T12:56:55Z")

</div>

@carloferrigno did you manage to do this? It should only be a matter of modifying the `docker build` line in `.gitlab-ci.yml`.
