Fix TypeError: Cannot read property 'Running' of undefined

This commit is contained in:
Pagan Gazzard 2015-01-02 17:11:42 +00:00 committed by Pablo Carranza Vélez
parent 848aa66494
commit 56f54331a5

View File

@ -93,7 +93,7 @@ do ->
containerHasExited = (id) ->
docker.getContainer(id).inspectAsync()
.then (data) ->
return not data.Status.Running
return not data.State.Running
# Return true if an image exists in the local docker repository, false otherwise.
exports.imageExists = imageExists = (imageId) ->