cli
cli copied to clipboard
docker exec's "executable file not found in $PATH" should go to stderr
Description
When docker exec cannot find an executable it prints an error. This error should go to standard error (stderr).
Steps to reproduce the issue:
docker run -d --name ubuntu ubuntu sleep 5mdocker exec -i ubuntu somethingsomething(printsOCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"somethingsomething\": executable file not found in $PATH": unknown)docker exec -i ubuntu somethingsomething > /dev/null
Describe the results you received:
When executing docker exec -i ubuntu somethingsomething > /dev/null nothing gets printed.
Describe the results you expected:
The following printed to stderr:
OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"somethingsomething\": executable file not found in $PATH": unknown
Output of docker version:
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:39 2019
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: true
docker
Output of docker info:
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 487
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.125-linuxkit
Operating System: Docker for Mac
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.787GiB
Name: linuxkit-025000000001
ID: 6XL3:ODYS:MM64:PTBE:B26E:2HTX:XSC6:46YG:7WTT:WF2F:TEF6:PACB
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 128
Goroutines: 260
System Time: 2019-07-30T14:24:42.7200981Z
EventsListeners: 2
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
[REDACTED]
Live Restore Enabled: false
Product License: Community Engine
Additional environment details (AWS, VirtualBox, physical, etc.):
none