View Source DockerAPI.Endpoints.Exec (DockerAPI v0.4.0)

Run new commands inside running containers. Refer to the command-line reference for more information.

official-document

Official document

https://docs.docker.com/engine/api/v1.41/#tag/Exec

Link to this section Summary

Link to this section Types

@type id() :: String.t()
@type t() :: %DockerAPI.Endpoints.Exec{connection: DockerAPI.Connection.t(), id: id()}

Link to this section Functions

@spec bang!(:ok) :: :ok
@spec bang!({:ok, term()}) :: term()
@spec bang!({:error, DockerAPI.Error.t()}) :: no_return()
Link to this function

create!(container, params \\ %{}, body \\ nil, headers \\ [])

View Source (since 0.4.0)
@spec create!(
  container :: Container.t(),
  params :: DockerAPI.Connection.params(),
  body :: DockerAPI.Connection.body(),
  headers :: DockerAPI.Connection.headers()
) :: t()
Link to this function

create(container, params \\ %{}, body \\ nil, headers \\ [])

View Source (since 0.4.0)
@spec create(
  container :: Container.t(),
  params :: DockerAPI.Connection.params(),
  body :: DockerAPI.Connection.body(),
  headers :: DockerAPI.Connection.headers()
) :: {:ok, t()} | {:error, DockerAPI.Error.t()}
Link to this function

handle_json_response(error)

View Source
@spec handle_json_response({:ok, binary()}) :: {:ok, term()}
@spec handle_json_response({:error, DockerAPI.Error.t()}) ::
  {:error, DockerAPI.Error.t()}
Link to this function

handle_no_response(error)

View Source
@spec handle_no_response({:ok, term()}) :: :ok
@spec handle_no_response({:error, DockerAPI.Error.t()}) ::
  {:error, DockerAPI.Error.t()}
Link to this function

inspect!(exec, params \\ %{}, headers \\ [])

View Source (since 0.4.0)
Link to this function

inspect(exec, params \\ %{}, headers \\ [])

View Source (since 0.4.0)
@spec inspect(
  exec :: t(),
  params :: DockerAPI.Connection.params(),
  headers :: DockerAPI.Connection.headers()
) :: {:ok, term()} | {:error, DockerAPI.Error.t()}
@spec inspect(
  exec :: t(),
  params :: DockerAPI.Connection.params(),
  headers :: DockerAPI.Connection.headers()
) :: term()
Link to this function

resize!(exec, params \\ %{}, body \\ nil, headers \\ [])

View Source (since 0.4.0)
@spec resize!(
  exec :: t(),
  params :: DockerAPI.Connection.params(),
  body :: DockerAPI.Connection.body(),
  headers :: DockerAPI.Connection.headers()
) :: :ok
Link to this function

resize(exec, params \\ %{}, body \\ nil, headers \\ [])

View Source (since 0.4.0)
@spec resize(
  exec :: t(),
  params :: DockerAPI.Connection.params(),
  body :: DockerAPI.Connection.body(),
  headers :: DockerAPI.Connection.headers()
) :: :ok | {:error, DockerAPI.Error.t()}
Link to this function

start!(exec, params \\ %{}, body \\ nil, headers \\ [])

View Source (since 0.4.0)
@spec start!(
  exec :: t(),
  params :: DockerAPI.Connection.params(),
  body :: DockerAPI.Connection.body(),
  headers :: DockerAPI.Connection.headers()
) :: :ok
Link to this function

start(exec, params \\ %{}, body \\ nil, headers \\ [])

View Source (since 0.4.0)
@spec start(
  exec :: t(),
  params :: DockerAPI.Connection.params(),
  body :: DockerAPI.Connection.body(),
  headers :: DockerAPI.Connection.headers()
) :: :ok | {:error, DockerAPI.Error.t()}