Re:`COPY –chmod` reduced the size of my container image by 35%
by nodesocket on Saturday March 26, 2022 @12:26AM
(#30809240)
If I exec into a container that runs npm and run top you’ll see npm (parent) using res memory and the node process (child) itself using memory. I’m pretty sure the npm memory is just wasted.
With Linux's CoW semantics, wouldn't the child share pages with the parent?