mirror of https://github.com/docker/docs.git
integration helpers: move the docker_ functions together
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
b4af7acd83
commit
5d10f47b32
|
@ -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[@]}
|
||||
|
|
Loading…
Reference in New Issue