Re:File Permissions: A painful side of Docker (2019)
by oauea on Tuesday June 01, 2021 @12:03AM
(#27350629)
And reproducibility goes straight out the window. And how do you even interop this with kubernetes?
Re:File Permissions: A painful side of Docker (2019)
by dandarie on Tuesday June 01, 2021 @05:57AM
(#27352379)
The solution is for docker-compose (or plain docker).
I don't think the reproducibility is out. It's the same app, the same image, the same intended user, you just inject, once, the local user and group ids.
You run docker-compose build ONCE and you're set. On my machine, it takes five seconds.
Heck, you can even run docker-compose build everytime you start the application, it will use the cached build and take less than one second.
---
Correction: the docker-compose up -d takes care of the build process the first time it runs.
Literally, it takes more to complain about the issue than build the image ONCE.