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

Starting and Stopping Services

A common thing we’ll need to do while developing our application is to stop or start the various services that make it up. In a moment, we’ll dive into the fine-grained control Compose gives us to do this. Before we do, though, it’s helpful to have in mind the journey that containers go through, from creation until they are no longer needed.

The following figure shows a simplified version of a container’s life cycle:

images/simplified-container-lifecycle.png

A container comes into existence in the created state. It doesn’t execute any code; it merely sits around waiting until it’s called for. When the container is started, it moves into the running state, ...

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