mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-07 05:57:07 +08:00
aio-interface: rename isDockerHubReachable
to isRegistryReachable
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
13e9829a85
commit
f7183b8d32
2 changed files with 4 additions and 4 deletions
|
@ -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
|
// and try to mitigate issues that are arising due to that
|
||||||
if ($pullImage) {
|
if ($pullImage) {
|
||||||
if (!$this->dockerActionManager->isDockerHubReachable($container)) {
|
if (!$this->dockerActionManager->isRegistryReachable($container)) {
|
||||||
$pullImage = false;
|
$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.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -599,7 +599,7 @@ readonly class DockerActionManager {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isDockerHubReachable(Container $container): bool {
|
public function isRegistryReachable(Container $container): bool {
|
||||||
$tag = $container->GetImageTag();
|
$tag = $container->GetImageTag();
|
||||||
if ($tag === '%AIO_CHANNEL%') {
|
if ($tag === '%AIO_CHANNEL%') {
|
||||||
$tag = $this->GetCurrentChannel();
|
$tag = $this->GetCurrentChannel();
|
||||||
|
|
Loading…
Add table
Reference in a new issue