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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.