feat(sentinel): add support for custom Docker images in StartSentinel and related methods

This commit is contained in:
Andras Bacsai
2025-09-14 19:21:55 +02:00
parent 08d257535a
commit 4027c1426c
3 changed files with 13 additions and 7 deletions

View File

@@ -1252,13 +1252,13 @@ $schema://$host {
return str($this->ip)->contains(':');
}
public function restartSentinel(bool $async = true)
public function restartSentinel(?string $customImage = null, bool $async = true)
{
try {
if ($async) {
StartSentinel::dispatch($this, true);
StartSentinel::dispatch($this, true, null, $customImage);
} else {
StartSentinel::run($this, true);
StartSentinel::run($this, true, null, $customImage);
}
} catch (\Throwable $e) {
return handleError($e);