Need privileges while building docker

Hi anyone,
Is there any way to build a docker image with privileges.
The reason for my question is …
while building docker image it needs some privileges to do some steps which
are depending on previous steps in the docker file.
Hence need privileges.

Please help me with the solution.
Thank you.

Hey , @ravikumark425 can you please share the build steps and the Dockerfile here for reference purposes ?