integration helpers: move the docker_ functions together

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-05-04 23:05:17 -07:00
parent b4af7acd83
commit 5d10f47b32
1 changed files with 5 additions and 5 deletions

View File

@ -40,6 +40,11 @@ function docker_host() {
command docker "$@"
}
# Run the docker CLI against swarm.
function docker_swarm() {
docker -H $SWARM_HOST "$@"
}
# Run the swarm binary. You must NOT fork this command (swarm foo &) as the PID
# ($!) will be the one of the subshell instead of swarm and you won't be able
# to kill it.
@ -110,11 +115,6 @@ function swarm_join_cleanup() {
done
}
# Run the docker CLI against swarm.
function docker_swarm() {
docker -H $SWARM_HOST "$@"
}
# Start N docker engines.
function start_docker() {
local current=${#DOCKER_CONTAINERS[@]}