Method: Api::V2::ContainersController#logs

Defined in:
app/controllers/api/v2/containers_controller.rb

#logsObject



109
110
111
112
113
114
# File 'app/controllers/api/v2/containers_controller.rb', line 109

def logs
  render :json => { :logs => Docker::Container.get(@container.uuid)
    .logs(:stdout => (params[:stdout] || true),
          :stderr => (params[:stderr] || false),
          :tail   => (params[:tail] || 100)) }
end