Unable to exec any command inside a running Docker container

Solution Verified - Updated -

Issue

  • When trying to exec any process inside container, docker fails with the following error:
# docker exec -it test bash
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"process_linux.go:75: starting setns process caused \\\"fork/exec /proc/self/exe: no such file or directory\\\"\"\n"

Environment

  • Red Hat Enterprise Linux Server 7.3
  • docker-1.12.5-14.el7.x86_64

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