Description
Docker exits with an error is stdin is not fully consumed.
Steps to reproduce the issue:
Run
head -c 500000 /dev/zero | docker run --rm -i alpine:3.9 echo
Describe the results you received:
Docker exits with 1 and prints on stderr.
read unix @->/var/run/docker.sock: read: connection reset by peer
Describe the results you expected:
Docker exists with 0 and does not print on stderr.
Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of docker version:
Client:
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:35:31 2019
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:02:44 2019
OS/Arch: linux/amd64
Experimental: false
Output of docker info:
Containers: 17
Running: 1
Paused: 0
Stopped: 16
Images: 173
Server Version: 18.09.1
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 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: 96ec2177ae841256168fcf76954f7177af9446eb
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
userns
Kernel Version: 4.15.0-45-generic
Operating System: Ubuntu 18.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.4GiB
Name: paul
ID: NPIE:SKNR:RFN7:JYOG:B63X:WVNA:5M67:HRRR:4N7N:M6WH:K6KJ:ZLDX
Docker Root Dir: /var/lib/docker/1000.1000
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
WARNING: No swap limit support
Additional environment details (AWS, VirtualBox, physical, etc.):
Host is Ubuntu 18.04.
Description
Docker exits with an error is stdin is not fully consumed.
Steps to reproduce the issue:
Run
Describe the results you received:
Docker exits with 1 and prints on stderr.
Describe the results you expected:
Docker exists with 0 and does not print on stderr.
Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of
docker version:Output of
docker info:Additional environment details (AWS, VirtualBox, physical, etc.):
Host is Ubuntu 18.04.