Re:Docker-slim: Minify your Docker container image without c...
by londons_explore on Wednesday December 11, 2019 @02:35AM
(#21760404)
Mount both filesystems at the same place as an overlay - if a file exists in both, I don't care which I see.
(1) If it's the bash version from the standard ubuntu image, you will need to specify where to mount your application's filesystem inside the ubuntu filesystem.
(2) If it's the bash version from your application, then it's the other way around: you will need to specify where to mount the ubuntu filesystem inside your container.
Option (1) seems more practical. My point is that you will need to specify a mountpoint either way, and your commands will need to take this mountpoint into account.