# Docker images pulled during bootstrap missing

**URL:** <https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047>\
**Category:** Elastic CI Stack for AWS\
**Created:** [May 19, 2022, 6:55pm UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047 "2022-05-19T18:55:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jl-applied](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jl-applied/32/995_2.png) [@jl-applied](https://forum.buildkite.community/u/jl-applied)\
**Post date:** [May 19, 2022, 6:55pm UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047/1 "2022-05-19T18:55:48Z")

</div>

Hi all,

Trying to pull a docker image during the bootstrap script during initialization. I can in the `elastic-stack.txt` logs that were are successfully pulling the image and a subsequent `docker images` confirms the image exists, but after initialization is complete, the image no longer appears to exist. Any ideas?

I noticed there is some cron jobs that prunes and none of their logs seem to indicate they’re removing logs nor can I find any other traces in other misc logs.

Thanks in advanced,  
Jamison

---

<div class="post-metadata">

**Author:** ![jeremy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jeremy/32/1040_2.png) [@jeremy](https://forum.buildkite.community/u/jeremy)\
**Post date:** [May 19, 2022, 9:57pm UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047/2 "2022-05-19T21:57:34Z")

</div>

Hi @jl-applied,

That’s an interesting question. It sounds like perhaps some commands might be running on agents that don’t have access to the images? It would be helpful if we are able to take a look at an example build where this is happening. Would you be able to share a build URL with [support@buildkite.com](mailto:support@buildkite.com), so we can take a closer look and help you out with this?

Cheers,

Jeremy

---

<div class="post-metadata">

**Author:** ![jl-applied](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jl-applied/32/995_2.png) [@jl-applied](https://forum.buildkite.community/u/jl-applied)\
**Post date:** [May 19, 2022, 10:13pm UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047/3 "2022-05-19T22:13:32Z")

</div>

> [@jeremy](#):
>
> It sounds like perhaps some commands might be running on agents that don’t have access to the images? It would be helpful if we are able to take a look at an example build where this is happening.

So, I’m accessing the instances directly before they even get schedule for a job. I have root access and am still unable to detect the images (or any traces of them in `/var/lib/docker`, `/var/log`, etc.).

This is happening around agent initialization, so not sure if there is a particular build which is relevant.

Thanks,  
Jamison

---

<div class="post-metadata">

**Author:** ![jeremy](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jeremy/32/1040_2.png) [@jeremy](https://forum.buildkite.community/u/jeremy)\
**Post date:** [May 20, 2022, 1:31am UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047/4 "2022-05-20T01:31:49Z")

</div>

@jl-applied Interesting… Would you be able to share your stack parameters at all (with any sensitive information removed)? I wonder if you have something set that might be messing with the image cache on the instance 🤔

---

<div class="post-metadata">

**Author:** ![jl-applied](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jl-applied/32/995_2.png) [@jl-applied](https://forum.buildkite.community/u/jl-applied)\
**Post date:** [May 20, 2022, 6:34pm UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047/5 "2022-05-20T18:34:15Z")

</div>

I emailed `support@buildkite.com` the relevant files. Let me know if I missed anything.

Thanks again,  
Jamison

---

<div class="post-metadata">

**Author:** ![jl-applied](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jl-applied/32/995_2.png) [@jl-applied](https://forum.buildkite.community/u/jl-applied)\
**Post date:** [May 24, 2022, 9:57pm UTC](https://forum.buildkite.community/t/docker-images-pulled-during-bootstrap-missing/2047/6 "2022-05-24T21:57:46Z")

</div>

Fortunately, I am no longer able to reproduce. I suspect the issue was somewhere on my end. Thanks again
