#!/bin/bash set -e docker_api_version=$(docker version) docker_api_version=$(docker version | grep API | head -n 1 | awk '{print $3}') echo "Docker API version is $docker_api_version..." export DOCKER_API_VERSION=$docker_api_version