Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
logs: list all containers, including those not running
Browse files Browse the repository at this point in the history
  • Loading branch information
lekkas committed Oct 20, 2016
1 parent d405428 commit db271ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/utils/common.coffee
Expand Up @@ -9,10 +9,11 @@ module.exports =
selectContainerFromDevice: Promise.method (deviceIp) ->
docker = new Docker(host: deviceIp, port: 2375)

docker.listContainersAsync()
# List all containers, including those not running
docker.listContainersAsync(all: true)
.then (containers) ->
if _.isEmpty(containers)
throw new Error("No containers are running in #{deviceIp}")
throw new Error("No containers found in #{deviceIp}")

return form.ask
message: 'Select a container'
Expand Down

0 comments on commit db271ed

Please sign in to comment.