Skip to content

Commit

Permalink
Wait for each service to converge when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze committed Jun 3, 2017
1 parent c495f43 commit d35f68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shepherd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ update_services() {
image_with_digest="$(docker service inspect "$service" -f '{{.Spec.TaskTemplate.ContainerSpec.Image}}')"
image=$(echo "$image_with_digest" | cut -d@ -f1)
echo "Updating service $name with image $image"
docker service update "$service" --image="$image" > /dev/null
docker service update "$service" --detach=false --image="$image" > /dev/null
fi
done
}
Expand Down

0 comments on commit d35f68a

Please sign in to comment.