I need to bee --privileged to run a specific command in the Dockerfile but I can't find a way to tell docker to do so.
The command is RUN echo core > /proc/sys/kernel/core_pattern
If I put that in the Dockerfile the build process fails.
If I run the Dockerfile with that line commented but with the flag --privileged
then I can run the command well within the container.
Is there any solution to make everything work from the Dockerfile?
Thank you