Docr::Endpoints::Exec
The Exec class provides functionality related to executing commands within containers.
Constructors
new(client : Docr::Client)
Initializes the Exec endpoint with a specific client instance.
- client: The client instance used for making API calls.
Instance methods
Creates an exec instance for a container with a given configuration.
- id: The ID of the container to create the exec instance for.
- config: Configuration details for creating the exec instance.
Returns the ID of the created exec instance.
inspect(id : String)
Inspects details about a specific exec instance.
- id: The ID of the exec instance to inspect.
Returns a structured response after inspecting the exec instance.
Starts an exec command with a given configuration.
- id: The ID of the exec instance to start.
- config: Configuration details for starting the exec command.
Returns the IO stream of the started command.