smebberson / docker-alpine

Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
MIT License
596 stars 186 forks source link

execlineb complaint when terminating container #21

Closed matthewvalimaki closed 8 years ago

matthewvalimaki commented 8 years ago

When running one of the examples and when I hit ctrl+c to terminate I see:

==> Caught signal: terminated
==> Gracefully shutting down agent...
    2016/01/06 20:45:30 [INFO] consul: client starting leave
execlineb: usage: execlineb [ -p | -P | -S nmin ] [ -q | -w | -W ] [ -c commandline ] script args
[cont-finish.d] executing container finish scripts...

Perhaps related but at the very end I see s6-svscanctl error:

[s6-finish] sending all processes the TERM signal.
    2016/01/06 20:45:30 [ERR] dns: error starting tcp server: accept tcp 127.0.0.1:8600: use of closed network connection
    2016/01/06 20:45:30 [INFO] agent: requesting shutdown
    2016/01/06 20:45:30 [INFO] consul: shutting down client
    2016/01/06 20:45:30 [WARN] serf: Shutdown without a Leave
    2016/01/06 20:45:30 [INFO] agent: shutdown complete
s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
[s6-finish] sending all processes the KILL signal and exiting.
smebberson commented 8 years ago

@matthewvalimaki, can you remember which example? It's not obvious to me from the output...

matthewvalimaki commented 8 years ago

@smebberson sorry for the delay.

s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening
Error connecting to Consul agent: dial tcp 127.0.0.1:8400: connection refused

That I see by doing docker run --rm --name consul-server smebberson/alpine-consul and then hitting CTRL+C.

smebberson commented 8 years ago

This has been fixed in recent releases.