I\'m trying to extend a docker container for SOLR. I just want to install vim into it. But when I run the docker build it complains that I\'m not root.
Similar suggestion to the previous answer https://stackoverflow.com/a/37615312/2200690, open an interactive shell as the root user and then install your packages using apt-get.