Can't use yum inside Docker container running on CentOS
<p>I am unable to run any yum commands inside my Docker container without getting the following error:</p>

<pre><code>ovl: Error while doing RPMdb copy-up:
[Errno 13] Permission denied: '/var/lib/rpm/Group'
You need to be root to perform this command.
</code></pre>

<p>I'm confused because I'm pretty sure docker containers are run with the default user root.  Still, if I try putting sudo in front of a <code>yum install -y &lt;package&gt;</code> or <code>yum update -y</code> command I get:</p>

<pre><code>/bin/sh: sudo: command not found
</code></pre>

<p>I'm using the following base image so I can easily run a Java Wildfly application inside Docker: <a href="https://hub.docker.com/r/jboss/wildfly/" rel="noreferrer">https://hub.docker.com/r/jboss/wildfly/</a></p>

<p>The underlying distro is <code>CentOS Linux release 7.2.1511 (Core)</code></p>