aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/linux
diff options
context:
space:
mode:
authorRyan Chu <ryan.chu@qt.io>2019-01-15 10:37:06 +0100
committerLiang Qi <liang.qi@qt.io>2019-02-02 12:23:11 +0000
commitab3e34827a69d936aa02757033b6a00be5003493 (patch)
tree670cd990f24f74a439343c647e6359c1ae699e37 /coin/provisioning/common/linux
parentb97e448ba47a5272424cdf8c779691013b967a00 (diff)
Display the provisioned version of docker tool kits
For debug purpose, print the installed version of docker, docker-compose, and docker-engine. Because 'docker info' is related to the docker-engine, postpone calling the command until docker virtual machine has been created. Change-Id: I4c869b7122b831b7f22c9c3846ac9cbe47c3b355 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'coin/provisioning/common/linux')
-rwxr-xr-xcoin/provisioning/common/linux/docker.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/coin/provisioning/common/linux/docker.sh b/coin/provisioning/common/linux/docker.sh
index d5cf202c..9be84e38 100755
--- a/coin/provisioning/common/linux/docker.sh
+++ b/coin/provisioning/common/linux/docker.sh
@@ -42,11 +42,12 @@ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubun
sudo apt-get update
sudo apt-get install docker-ce -y
sudo usermod -a -G docker $USER
-sudo docker info
+sudo docker --version
# Download and install the docker-compose extension.
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
+sudo docker-compose --version
# Install Avahi to discover Docker containers in the test network
sudo apt-get install avahi-daemon -y