Connecting to docker.sock in OpenShift

Solution Verified - Updated -

Issue

  • Can I connect to the Docker daemon by accessing /var/run/docker.sock in OpenShift?
  • Error showing:

    Invalid Docker configuration (API: 'v1.35' / Endpoint: 'unix:///var/run/docker.sock') and/or unable to contact the service. Is Docker running?`
    

Environment

OpenShift 3.x+

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