mirror of
https://github.com/unraid/webgui.git
synced 2026-02-18 06:58:47 -06:00
coderabbit - error handling
This commit is contained in:
@@ -33,6 +33,10 @@ case 'start':
|
||||
if ($container) {
|
||||
$info = $DockerClient->getDockerContainers();
|
||||
$key = array_search($container,array_column($info,"Id"));
|
||||
if ( $key === false ) {
|
||||
$arrResponse = ['success' => _('Container not found. Try reloading this page to fix.')];
|
||||
break;
|
||||
}
|
||||
if ($info[$key]['NetworkMode'] == "host" && $info[$key]['Cmd'] == "/opt/unraid/tailscale") {
|
||||
$arrResponse = ['success'=> _('For security reasons, containers with Network Type "Host" should not have Tailscale enabled. Please disable Tailscale in this container or change the Network Type of the container.')];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user