lushuncheng преди 6 години
родител
ревизия
4216de90f5
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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}");