fix command

This commit is contained in:
anlicheng 2025-09-17 10:32:34 +08:00
parent fcb43d1792
commit 4eea5eb880

View File

@ -122,7 +122,7 @@ check_container_exist(ContainerName) when is_binary(ContainerName) ->
-spec start_container(ContainerName :: binary()) -> boolean().
start_container(ContainerName) when is_binary(ContainerName) ->
PortSettings = [stream, exit_status, use_stdio, binary],
ExecCmd = "docker start " ++ binary_to_list(ContainerName),
ExecCmd = "docker start " ++ binary_to_list(ContainerName) ++ " >/dev/null 2>&1",
case catch erlang:open_port({spawn, ExecCmd}, PortSettings) of
Port when is_port(Port) ->
case gather_output(Port) of