Actions42
- Container Actions
- Image Actions
- Network Actions
- System Actions
- Volume Actions
Container → Read Text File
AI-generatedSummary
Read a text file from a Docker container
Inputs
- containerId (required) — Container name or full/short container ID
- workingPath — Absolute path inside the container; relative paths resolve from here (Linux containers only)
- filePath (required) — Absolute path or path relative to Working Path of the file to read
- startLine — Only return content starting from this 1‑based line number
- endLine — Only return content through this 1‑based line number
Output shape
a single string containing the file content
If startLine or endLine are specified, only the indicated range is returned; otherwise the entire file content is returned. The result is provided as a string in the workflow data.
Examples
Example 1: Read config.json from /workspace/app
containerId: mycontainer; workingPath: /workspace; filePath: app/config.json; startLine: (empty); endLine: (empty)