Docker Community Forums

Share and learn in the Docker community.

Invalidating cache for cloning


(Conradk12) #1

Hey everyone,

So the case I have right now is trying to pull a repo every time a docker image is created. Google’ing hasn’t provided anything that would be able to help me. So what i need is for docker to pull down the latest code from my repo every time I build an image

Thanks for the help :smile:


(Ryan Trauntvein) #2

Maybe docker build --no-cache is the flag you are looking for?