Bug 1393572

Summary: "executable file not found in $PATH" diagnostic now includes unnecessary/confusing extras
Product: Red Hat Enterprise Linux 7 Reporter: Ed Santiago <santiago>
Component: dockerAssignee: Antonio Murdaca <amurdaca>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: amurdaca, cevich, dwalsh, lsm5
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-30 14:56:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ed Santiago 2016-11-09 21:45:23 UTC
At some point along the docker-1.12 process, the error message for "command not found" changed:

   # docker run centos no-such-binary

   - Error response from daemon: oci runtime error: exec: "no-such-binary": executable file not found in $PATH.

   + Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"no-such-binary\\\": executable file not found in $PATH\"\n".

That is: there is now a spurious "invalid header field value etc etc". And the escaped quotes.

Present in docker-1.12.3-1.el7 , docker-1.12.3-4.el7 , docker-latest-1.12.3-2.el7 (and probably many more) but, curiously, not in docker-latest-1.12.1-3.el7.

Comment 1 Antonio Murdaca 2016-11-09 23:20:22 UTC
upstream messed this up I guess, tracking upstream at https://github.com/docker/docker/issues/28218

Comment 3 Chris Evich 2017-02-21 14:36:53 UTC
Setting this to medium since it's causing a CI test to fail.

Comment 4 Daniel Walsh 2017-06-30 14:56:45 UTC
I believe this is fixed in the current release.

Comment 5 Ed Santiago 2017-07-03 13:53:41 UTC
Seems to be fixed in 1.13:

   docker-latest-1.13.1-19.1.git19ea2d3.el7:
    /usr/bin/docker-latest: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"no-such-binary\": executable file not found in $PATH".

FWIW, not in 1.12:

  docker-1.12.6-39.1.git6ffd653.el7:
    /usr/bin/docker-current: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"no-such-binary\\\": executable file not found in $PATH\"\n".