summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/host_profiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_internal/host_profiles.py')
-rw-r--r--test/lib/ansible_test/_internal/host_profiles.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/host_profiles.py b/test/lib/ansible_test/_internal/host_profiles.py
index aa3d1e2ef1..488cfcea80 100644
--- a/test/lib/ansible_test/_internal/host_profiles.py
+++ b/test/lib/ansible_test/_internal/host_profiles.py
@@ -76,6 +76,7 @@ from .docker_util import (
run_utility_container,
SystemdControlGroupV1Status,
LOGINUID_NOT_SET,
+ UTILITY_IMAGE,
)
from .bootstrap import (
@@ -455,6 +456,10 @@ class DockerProfile(ControllerHostProfile[DockerConfig], SshTargetHostProfile[Do
)
if not container:
+ if self.args.prime_containers:
+ if init_config.command or init_probe:
+ docker_pull(self.args, UTILITY_IMAGE)
+
return
self.container_name = container.name