From f7183b8d32b57cdd873b84c52d7c815503398e3d Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 25 Mar 2025 12:13:31 +0100 Subject: [PATCH] aio-interface: rename `isDockerHubReachable` to `isRegistryReachable` Signed-off-by: Simon L. --- php/src/Controller/DockerController.php | 6 +++--- php/src/Docker/DockerActionManager.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index ee439824..6c55b3da 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -41,12 +41,12 @@ readonly class DockerController { } } - // Check if docker hub is reachable in order to make sure that we do not try to pull an image if it is down + // Check if registry is reachable in order to make sure that we do not try to pull an image if it is down // and try to mitigate issues that are arising due to that if ($pullImage) { - if (!$this->dockerActionManager->isDockerHubReachable($container)) { + if (!$this->dockerActionManager->isRegistryReachable($container)) { $pullImage = false; - error_log('Not pulling the ' . $container->GetContainerName() . ' image for the ' . $container->GetIdentifier() . ' container because docker hub does not seem to be reachable.'); + error_log('Not pulling the ' . $container->GetContainerName() . ' image for the ' . $container->GetIdentifier() . ' container because the registry does not seem to be reachable.'); } } diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index bbcd4b77..71242d92 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -599,7 +599,7 @@ readonly class DockerActionManager { } - public function isDockerHubReachable(Container $container): bool { + public function isRegistryReachable(Container $container): bool { $tag = $container->GetImageTag(); if ($tag === '%AIO_CHANNEL%') { $tag = $this->GetCurrentChannel();