Does anyone here use Docker BuildKit as opposed to the original Docker build? The docs seem to imply it's experimental, but the developers seem to be putting all their effort behind it so it has all the great new features. What are your thoughts on using it in production?
bradymover 5 years ago
I've got a dockerfile we're using for local development. I'm installing npm modules in the dockerfile and marking node_modules as a volume so when the code is mounted in without a node_modules folder, we'll use what's in the image. This is working nicely, but after a docker run the node_modules folder exists on the host owned by root.
Is there any way to avoid the node_modules folder on the host being owned by root? I assume it would require running the docker daemon as another user, but thought I'd check.