Merge branch 'master' into separate-data-root-for-docker-binds

This commit is contained in:
Jody McIntyre
2018-04-16 18:54:58 -04:00
committed by GitHub
41 changed files with 141 additions and 116 deletions

View File

@@ -398,6 +398,19 @@ is_deployed() {
fi
}
is_container_running() {
declare desc="return 0 if given docker container id is in running state"
declare deprecated=true
local CID=$1
local CONTAINER_STATUS=$(docker inspect -f '{{.State.Running}}' "$CID" || true)
if [[ "$CONTAINER_STATUS" == "true" ]]; then
return 0
else
return 1
fi
}
is_container_status() {
declare desc="return 0 if given docker container id is in given state"
local CID=$1

View File

@@ -1,4 +1,4 @@
[plugin]
description = "dokku core common plugin"
version = "0.12.1"
version = "0.12.2"
[plugin.config]