4 ms·
> I noticed you start to find every operating system quirk ever when you start writing Dockerfiles. I've been using Dockerfiles extensively for years and I'm y
by fivea 5y ago
> I noticed you start to find every operating system quirk ever when you start writing Dockerfiles.
I've been using Dockerfiles extensively for years and I'm yet to find anything that fits the definition of a OS quirk.
The quirkiest thing I've noticed in Dockerfiles is the ADD vs COPY thing.
> I've run into so many strange things just converting a simple predictable shell script into a Dockerfile.
What exactly are you trying to do setting up a Dockerfile that requires a full blown shell script?
A Dockerfile should have little more beyond updating/installing system packages with a package manager, and copying files into the container image. First you run a build to get your artifacts ready for packaging, and afterwards you package those artifacts by running your Dockerfile.
- ghoulishboo 5y ago
- staticassertion 5y ago> I’m kind of impressed with how aggressively this comment misunderstands its parent and then beats the hell out of that misunderstanding. This is just peak irony.
- ghoulishboo2 5y ago
- staticassertion 5y agoYou learned what irony was in a literary theory class?
- TobTobXX 5y agoI don't know what qualifues a s quirk, but I sometimes had to think about stuff like "who's PID 0", "do I have the CAP_WHATEVER capability", "I need to 'reap' subprocesses?" and other stuff that 'just works' when you have a decent system with a decent init process and all the other things.