lushuncheng vor 6 Jahren
Ursprung
Commit
4216de90f5
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      command/Start.php

+ 4 - 0
command/Start.php

@@ -146,6 +146,10 @@ class Start
             if (file_exists($directory . '/config/docker.yml')) {
                 system("docker-compose -f {$directory}/config/docker.yml rm -s -f");
             }
+            $redis = $this->getRedis();
+            $lockKey = static::IP_LOCK_KEY . $ip;
+            $redis->del($lockKey);
+
             // 容器存储目录
             $directory = $this->containersBasePath . $name;
             system("sudo rm -rf {$directory}");