Running "docker" commands inside OpenShift container

Solution Verified - Updated -

Issue

  • I need to run few docker commands inside a container
  • I installed docker using below dockerfile but cannot execute any docker commands
FROM registry.access.redhat.com/rhel7
USER 0
COPY redhat_extras.repo /etc/yum.repos.d/redhat_extras.repo
RUN /bin/bash -c "yum install docker -y && yum clean all -y "

Environment

  • Red Hat OpenShift Container Platform
    • 3.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content