# Build randomly use old docker image & fail

**URL:** <https://discuss.circleci.com/t/build-randomly-use-old-docker-image-fail/12745>\
**Category:** Bug Reports\
**Created:** [May 21, 2017, 10:20am UTC](https://discuss.circleci.com/t/build-randomly-use-old-docker-image-fail/12745 "2017-05-21T10:20:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsenta](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lsenta/32/16138_2.png) [@lsenta](https://discuss.circleci.com/u/lsenta)\
**Post date:** [May 21, 2017, 10:20am UTC](https://discuss.circleci.com/t/build-randomly-use-old-docker-image-fail/12745/1 "2017-05-21T10:20:32Z")

</div>

I have a circleci 2.0 build, on a private project.  
I use a custom image with a few tools:  
[https://hub.docker.com/r/lsenta/gcloud-functions-testing/](https://hub.docker.com/r/lsenta/gcloud-functions-testing/)

I’m seeing a lot of instances where my build will fail because a command is missing (`lein` for clojure(script)). Rebuilding, once or twice works.

It’s as if the circleci builder is not using the last version of my image every time.

---

<div class="post-metadata">

**Author:** ![lsenta](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lsenta/32/16138_2.png) [@lsenta](https://discuss.circleci.com/u/lsenta)\
**Post date:** [May 21, 2017, 10:21am UTC](https://discuss.circleci.com/t/build-randomly-use-old-docker-image-fail/12745/2 "2017-05-21T10:21:12Z")

</div>

Btw, even though this specific bug is annoying,  
Thanks for providing this nice tool for free for open source and starters projects!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:34am UTC](https://discuss.circleci.com/t/build-randomly-use-old-docker-image-fail/12745/3 "2018-06-18T11:34:43Z")

</div>

Closed on June 18, 2018, 11:34am UTC


