Skip to content

Executing child process in scripts hangs terminal #24284

@mckn

Description

@mckn

Output of docker version:

Client:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   906eacd
 Built:        Fri Jun 17 20:35:33 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   a7119de
 Built:        Wed Jun 29 10:03:33 2016
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:

Containers: 2
 Running: 1
 Paused: 0
 Stopped: 1
Images: 482
Server Version: 1.12.0-rc2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 380
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host null overlay
Swarm: inactive
Runtimes: default
Default Runtime: default
Security Options: seccomp
Kernel Version: 4.4.14-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.954 GiB
Name: moby
ID: Z25L:V4GW:6DNP:UQGU:2DRW:BROW:BPRA:K3S5:LBE7:PYWL:KOYC:UJ2N
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 112
 Goroutines: 211
 System Time: 2016-07-03T15:47:20.113835804Z
 EventsListeners: 49
No Proxy: *.local, 169.254/16
Username: mckn
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8

Additional environment details (AWS, VirtualBox, physical, etc.):
I am running on OSX 10.11.5

Steps to reproduce the issue:

  1. docker run -d --name cassandra cassandra:2
  2. wait until started (takes about 10s)
  3. docker run -e "DATABASE=cassandra" --link cassandra:kong-database -ti mashape/kong /usr/local/bin/kong start
  4. It will hang on [INFO] Auto-generating the default SSL certificate and key...
  5. source to that file is: https://github.com/Mashape/kong/blob/997561b42c27d5917f261065d9b1f5e99079e337/kong/cli/utils/ssl.lua#L43
  6. It will continue if you press ctrl-c

Describe the results you received:
Docker seems to hang when spawning child processes inside executed scripts.

Describe the results you expected:
It should continue in the flow and print [OK] Started and then exit the docker run.

Additional information you deem important (e.g. issue happens only occasionally):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions