mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
fix(docker): escape container status commands
Build container status commands with escaped container names in the Docker helper so callers can pass raw identifiers consistently.
This commit is contained in:
@@ -455,9 +455,8 @@ class ServiceApplicationsController extends Controller
|
||||
}
|
||||
|
||||
$containerName = $serviceApplication->name.'-'.$serviceApplication->service->uuid;
|
||||
$safeContainerName = escapeshellarg($containerName);
|
||||
|
||||
$status = getContainerStatus($server, $safeContainerName);
|
||||
$status = getContainerStatus($server, $containerName);
|
||||
if ($status !== 'running') {
|
||||
return response()->json([
|
||||
'message' => 'Service application container is not running.',
|
||||
|
||||
Reference in New Issue
Block a user