Settings

Theme

Mastering the Docker Cache

contains.dev

19 points by swazzy 4 years ago · 4 comments

Reader

lmarcos 4 years ago

Seems like unnecessary complexity to me. What about skipping the cache tricks until Docker releases a version that handles all thing cache related in a better way?

  • mixedCase 4 years ago

    Depending on the amount of people you have waiting for Docker to do its job properly on each feedback loop, the time investment could pay for itself rather quickly.

    If you are on a small team only running native Linux on their workstations, probably not the case.

aquamarine1 4 years ago

I feel caching is one of those things that Docker hasn't spent enough time on. The Developer is left with a bunch of "techniques" to overcome its shortcomings.

  • raihansaputra 4 years ago

    Agreed. There's still no official way to copy context while excluding certain folders (ex: rarely changing static/public folders). This becomes far more difficult when dealing with multi-stage builds. I find it faster for my FE app to build on a separate stage and copy the build into an NGINX Dockerimage.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection