Method: Docker::Compose::Session#stop

Defined in:
lib/docker/compose/session.rb

#stop(*services, timeout: 10) ⇒ Object

Stop running services.

Parameters:

  • services (Array)

    list of String service names to stop

  • timeout (Integer) (defaults to: 10)

    how long to wait for each service to stop

Raises:

  • (Error)

    if command fails



143
144
145
146
# File 'lib/docker/compose/session.rb', line 143

def stop(*services, timeout: 10)
  o = opts(timeout: [timeout, 10])
  run!('stop', o, services)
end