Install proper docker package for tests

Change-Id: Ic60f2ec89bb4a489987c085a822c29b2a251f038
Related-task: #PROD-25653 (PROD:25653)
diff --git a/src/com/mirantis/mk/Test.groovy b/src/com/mirantis/mk/Test.groovy
index 483a922..8c663e5 100644
--- a/src/com/mirantis/mk/Test.groovy
+++ b/src/com/mirantis/mk/Test.groovy
@@ -409,7 +409,9 @@
  */
 def install_docker(master, target) {
     def salt = new com.mirantis.mk.Salt()
-    salt.runSaltProcessStep(master, target, 'pkg.install', ["docker.io"])
+    def dockerPackagesPillar = salt.getPillar(master, target, 'docker:host:pkgs')
+    def dockerPackages = salt.getReturnValues(dockerPackagesPillar) ?: ['docker.io']
+    salt.runSaltProcessStep(master, target, 'pkg.install', dockerPackages)
 }