Start the docker machine and update with new TLS certificates

After the system reboots, the docker machine is created, but in a
stopped state. To handle the case that a developer may rerun the
provisioning scripts for the missed docker images, make sure the
docker machine is both started and running with new TLS certificates.

Change-Id: Ibdb58152cac860132a77d6d094f9bca20a5e95e8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
Ryan Chu
2019-01-28 00:00:38 +01:00
committed by Liang Qi
parent 177df80f09
commit b4b2152dd3

View File

@@ -42,6 +42,9 @@ if [ -z $(docker-machine ls -q --filter "name=$TestMachine") ]
then
docker-machine create $@ $TestMachine
docker-machine ip $TestMachine
else
# Otherwise, start the docker machine and update with new TLS certificates.
docker-machine start $TestMachine && docker-machine regenerate-certs -f $TestMachine
fi
# Switch the docker engine to $TestMachine