Skip to content

Commit

Permalink
detach from the start execution command
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Nov 17, 2024
1 parent 52432cf commit b9feb5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker_engine_api/api/exec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ defmodule DockerEngineAPI.Api.Exec do
|> method(:post)
|> url("/exec/#{id}/start")
|> add_optional_params(optional_params, opts)
|> add_param(:headers, :"Content-Type", "application/json")
|> ensure_body()
|> Enum.into([])

connection
Expand Down
2 changes: 1 addition & 1 deletion lib/docker/api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ defmodule Testcontainers.Docker.Api do
end

defp start_exec(exec_id, conn) do
case Api.Exec.exec_start(conn, exec_id) do
case Api.Exec.exec_start(conn, exec_id, body: %{:Detach => true}) do
{:ok, %Tesla.Env{status: 200}} ->
:ok

Expand Down

0 comments on commit b9feb5f

Please sign in to comment.