Container fails to start with message:"running prestart hook 1 caused \\\"error running hook: exit status 1"

Solution Verified - Updated -

Issue

Container fails to start

#  docker run hello-world
container_linux.go:247: starting container process caused "process_linux.go:334: running prestart hook 1 caused \"error running hook: exit status 1, stdout: , stderr: \""
/usr/bin/docker-current: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:334: running prestart hook 1 caused \\\"error running hook: exit status 1, stdout: , stderr: \\\"\"\n".

In the journalctl is possible to see following messages

may 02 14:52:02 test-docker dockerd-current[10753]: container_linux.go:247: starting container process caused "process_linux.go:334: running prestart hook 1 caused \"error running hook: exit status 1, stdout: , stderr: \""
may 02 14:52:02 test-docker docker[10753]: time="2017-05-02T14:52:02.054408364+02:00" level=error msg="containerd: start container" error="oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:334: running prestart hook 1 caused \\\"error running hook: exit status 1, stdout: , stderr: \\\"\"\n" id=7713e052a964635a0cc07a8872304279c00fb11670eb4823a5eb7a63cab1c139
may 02 14:52:02 test-docker docker[10753]: time="2017-05-02T14:52:02.057323855+02:00" level=error msg="Create container failed with error: invalid header field value \"oci runtime error: container_linux.go:247: starting container process caused \\\"process_linux.go:334: running prestart hook 1 caused \\\\\\\"error running hook: exit status 1, stdout: , stderr: \\\\\\\"\\\"\\n\""
oci-systemd-hook[6519]: systemdhook <error>:  parse error: trailing garbage

Environment

  • Red Hat Enterprise Linux 7
  • docker

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