Reputation: 4555
I am analysing some slightly strange behaviour in our automated build processes, which lead me to ask:
Does hub.docker.com use the --no-cache
option when performing automated builds?
Upvotes: 11
Views: 2229
Reputation: 413
Unfortunately, this was not the case for me. I had to end up rebuilding the image with the --no-cache flag. Then push the image up to docker hub. Admittedly the dockerfile used was not with best practice as it involved a "git pull". Oh well!
Upvotes: 1
Reputation: 38317
Yes. The build process is currently:
git clone --recursive --depth 1 -b branch $URL
Readme
and Dockerfile
docker build -t tagname --nocache
Upvotes: 22