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


172
173
174
175
# File 'lib/docker/compose/session.rb', line 172

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