Permalink
Browse files

Check for docker in linux deploy_stack scripts

This commit updates the linux (both ARM and x86) deploy_stack scripts to
check for the availability of the Docker command and print the same
error returned by the PS1 script if not found.

Signed-off-by: John McCabe <john@johnmccabe.net>
  • Loading branch information...
johnmccabe authored and alexellis committed Aug 16, 2017
1 parent 3d2af2b commit b2e51e5dadeef51000e3f4587a232101a5d29cde
Showing with 10 additions and 0 deletions.
  1. +5 −0 deploy_stack.armhf.sh
  2. +5 −0 deploy_stack.sh
@@ -1,4 +1,9 @@
#!/bin/sh
if ! [ -x "$(command -v docker)" ]; then
echo 'Unable to find docker command, please install Docker (https://www.docker.com/) and retry' >&2
exit 1
fi
echo "Deploying stack"
docker stack deploy func --compose-file docker-compose.armhf.yml
@@ -1,5 +1,10 @@
#!/bin/sh
if ! [ -x "$(command -v docker)" ]; then
echo 'Unable to find docker command, please install Docker (https://www.docker.com/) and retry' >&2
exit 1
fi
echo "Deploying stack"
docker stack deploy func --compose-file docker-compose.yml

0 comments on commit b2e51e5

Please sign in to comment.