Files
docker-install/verify-docker-install
Eli Uriegas def4691870 Removes version and git commit verification
The install script won't be updated every single time a release is done
so it does not make sense to tie the verification jobs to specific
versions / git commits.

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-07-25 11:02:07 -07:00

22 lines
481 B
Bash
Executable File

#!/bin/bash -e
(
echo "INFO: Executing installation script!"
sh build/install.sh
)
# Verify that we can at least get version output
if ! docker --version; then
echo "ERROR: Did Docker get installed?"
exit 1
fi
# Attempt to run a container if not in a container
if [ ! -f /.dockerenv ]; then
if ! docker run --rm hello-world; then
echo "ERROR: Could not get docker to run the hello world container"
exit 2
fi
fi
echo "INFO: Successfully verified docker installation!"