Docker exec bash - Exiting randomly

Hey guys,

I tried to google out about what is happening but can’t find anything.

Basically, got a very simple alpine:3.7 image and created a container:

docker run -tdi --name dev devImage

Nothing fancy. When I start my image and try to access it via bash:

docker start dev
docker exec -ti dev /bin/bash

It randomly exiting between 5 secs and 2-3 minutes, even after 4-5 keystrokes!. I can see all my other bash PID but apart of that, nothing is actually running on this container (unless I stop it and restart it).

Seems I’m not the only one:

Any advices on what I’m doing wrong? Thx!

H:\>docker info
Containers: 7
 Running: 1
 Paused: 0
 Stopped: 6
Images: 80
Server Version: 17.09.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
  Profile: default
Kernel Version: 4.9.49-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: moby
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 20
 Goroutines: 29
 System Time: 2017-12-13T15:52:06.7981876Z
 EventsListeners: 0
Experimental: true
Insecure Registries:
Live Restore Enabled: false

H:\>docker version
 Version:      17.09.1-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:22:26 2017
 OS/Arch:      windows/amd64

 Version:      17.09.1-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:28:28 2017
 OS/Arch:      linux/amd64
 Experimental: true