For those seeing this error using a Dockerfile (and coming here via a Google search): add the following line to your Dockerfile:
USER root
For those seeing this error using a Dockerfile (and coming here via a Google search): add the following line to your Dockerfile:
USER root