—config flag still writes to file system

when I point docker to my the dir of my config.json using docker —config, it still tries to rename the config file which can’t happen since I’m on a read-only file system. The exact error is:

Error saving credentials: rename /mydir/config.json1701699760 /mydir/config.json: operation not permitted

It’s as if under the hood docker still needs write access despite the fact that I’ve set written the config file and specified the path myself? Any thoughts?

I think we could continue the discussion in the previous topic where you also shared this question. I’m going to close this topic just so we don’t try to answer the same question multiple times. If you feel this question needs a new topic, please, explain it in the other topic where I already replied and we can reopen this one or move comments from the other topic to a new one. Thank you!