fix command
This commit is contained in:
parent
fcb43d1792
commit
4eea5eb880
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user