Skip to Content
Docker for Rails Developers
book

Docker for Rails Developers

by Rob Isenberg
February 2019
Intermediate to advanced
240 pages
5h 25m
English
Pragmatic Bookshelf
Content preview from Docker for Rails Developers

Compose Intermittently Aborts with Ctrl-C

When you start your application with Compose in the default, attached mode—in other words, without the -d option—Compose connects to each container’s stdout, tailing the output.

When you press Ctrl-C, Compose is supposed to instruct the containers to terminate by sending the main process the SIGTERM signal. The process should exit gracefully and then the container should terminate. When this happens correctly, the Compose output on pressing Ctrl-C is:

 Killing myapp_web_1 ... done
 Gracefully stopping... (press Ctrl+C again to force)

However, maybe 10–50 percent of the time for me, instead of the containers shutting down gracefully, we get this:

 ^CERROR: Aborting.

and the termination fails, leaving ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Learn Rails 6: Accelerated Web Development with Ruby on Rails

Adam Notodikromo
Mastering Ruby Closures

Mastering Ruby Closures

Benjamin Tan Wei Hao

Publisher Resources

ISBN: 9781680506730Errata Page