From 4729069659385a6cceec2ef1ecf273ad3ea606a0 Mon Sep 17 00:00:00 2001 From: Andy Mishechkin Date: Tue, 21 Apr 2020 15:42:06 +0400 Subject: [PATCH] Checking the moby-buildx and moby-buildx documentation has been added --- images/linux/scripts/installers/docker-moby.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/linux/scripts/installers/docker-moby.sh b/images/linux/scripts/installers/docker-moby.sh index 4fbbcf657..efa8ea53d 100644 --- a/images/linux/scripts/installers/docker-moby.sh +++ b/images/linux/scripts/installers/docker-moby.sh @@ -26,6 +26,9 @@ echo "Testing to make sure that script performed as expected, and basic scenario if ! command -v docker; then echo "docker was not installed" exit 1 +else if ! command -v docker buildx build then + echo "moby-buildx was not installed" + #exit 1 else # Docker daemon takes time to come up after installing sleep 10 @@ -51,3 +54,7 @@ docker pull ubuntu:14.04 echo "Documenting Docker version" docker_version=$(docker -v) DocumentInstalledItem "Docker-Moby ($docker_version)" + +echo "Documenting moby-buildx version" +moby_buildx_version=$(docker buildx -v) +DocumentInstalledItem "Moby-Buildx ($moby_buildx_version)"