title: Docker base image having telnet and ping
body: <p>I have to debug network issues at a docker container. The container was built using "FROM registry.access.redhat.com/ubi7/ubi-minimal"</p>
  
  <p>It has no "telnet" or "ping" like a normal shell has. That was by design in order to save space.</p>
  
  <p>I tried to install them through yum within docker container shell – yum is not available
  They used something called “microdnf” which is like yum
  Tried “bash-4.2# microdnf install iputils”  -  No package matches 'iputils'. Similar result for telnet</p>
  
  <p>Tried running it inside the dockerfile, where the image is created. It seem to be getting installed – but image creation explodes"
  “The command '/bin/sh -c yum install iputils' returned a non-zero code: 1”</p>
  
  <p>I changed the image base from “FROM registry.access.redhat.com/ubi7/ubi-minimal” to “FROM registry.access.redhat.com/ubi7/ubi”
  This has yum available.</p>
  
  <p>“yum install iputils” from container shell, and from docker file failed the same way.</p>
  
  <p>Is there an image (preferably redhat) that will let me use "ping" and will process my Dockerfile correctly?</p>
  
  <pre><code>FROM registry.access.redhat.com/ubi7/ubi-minimal
  
  RUN microdnf update -y &amp;&amp; rm -rf /var/cache/yum
  RUN microdnf clean all
  RUN microdnf install shadow-utils
  
  # Create a group and user
  RUN groupadd -r myapp &amp;&amp; useradd -r myapp -g myapp
  RUN useradd -r aspisc  -g myapp
  
  RUN mkdir -p /opt/smyapp/config
  RUN mkdir -p /opt/smyapp/logs
  RUN chown -R myapp:smyapp /opt/myapp
  
  RUN mkdir -p /opt/myapp/bin &amp;&amp; mkdir -p /opt/myapp/libs
  
  RUN mkdir -p /opt/jre/
  
  ENV JAVA_LIBS_CP /opt/myapp/libs
  ENV LD_LIBRARY_PATH=/lib64
  RUN echo JAVA_LIBS_CP=${JAVA_LIBS_CP}
  
  
  EXPOSE 9500
  EXPOSE 9501
  
  ENTRYPOINT ["sh", "-c", "/opt/jre/bin/java $JAVA_OPTS -cp /opt/smyapp/bin/*:$JAVA_LIBS_CP/*...."] 
  </code></pre>