this post was submitted on 02 Oct 2023
1377 points (96.8% liked)

Programmer Humor

19187 readers
1399 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] kattfisk@lemmy.dbzer0.com 1 points 11 months ago (1 children)

This is likely because docker runs Linux in a VM on MacOS right?

We've had similar problems with stuff that works on the developers Mac but not the server which is case sensitive. It can be quite insidious if it does not cause an immediate "file not found"-error but say falls back to a default config because the provided one has the wrong casing.

[โ€“] joyjoy@lemm.ee 1 points 10 months ago* (last edited 10 months ago)

The same issue happens with git (on windows). The file system says they're the same file and they haven't changed, so you have to manually tell the program the file changed. With git, you'd run git rm --cached && git add . On docker, you could just do a non-cached build via docker build . --no-cache