Can't create unix socket /var/run/docker.sock: is a directory

Solution Verified - Updated -


  • Docker gets terminated at the same time as OpenShift is trying to restart a pod that mounts /var/run/docker.sock. When docker starts again, it fails with the following error:

    level=fatal msg="can't create unix socket /var/run/docker.sock: is a directory"


  • OpenShift Container Platform
    • 3.4 and later
  • docker-1.12.6-31.git3a6eaeb.el7
  • docker-1.13.1-75.git8633870.el7_5.x86_64

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