Docr::Endpoints::Containers
Class responsible for handling container operations in the Docr system.
Instance methods
logs(id : String, follow = false, stdout = false, stderr = false, since = 0, _until = 0, timestamps = false, tail = "all")
Fetches logs of a specific container.
- id: ID of the container.
- follow: If true, follow logs. Default is false.
- stdout: If true, fetch stdout logs. Default is false.
- stderr: If true, fetch stderr logs. Default is false.
- since: Timestamp to start showing logs. Default is 0.
- until: Timestamp to stop showing logs. Default is 0.
- timestamps: If true, include timestamps. Default is false.
- tail: Number of lines to show from the end of the logs. Default is "all".
Returns the IO stream of the logs.