docker: fast CI rebuilds with --cache-from (intermediate) anthony explains #448

preview_player
Показать описание
today I show how to speed up docker builds by using `--cache-from` (and why it's necessary at all!)

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Комментарии
Автор

Thanks for the wonderful explanation Anthony. Wish this feature worked with the multistage Dockerfile builds as well.

nilesh-gule
Автор

What are the differences between the --cache-from flag in docker build and the RUN --mount type=cache in the Dockerfile itself? Are BOTH needed to leverage cache?

panteliskaramolegkos
Автор

Do I need to have pulled the image before or will it be pulled automatically if I don't have it yet? Does this also work with buildx? I think that normally doesn't look at local images as it has its own cache?

ndepal