docker_write_file
Write UTF-8 text to a file inside a Docker container, overwriting or appending, with automatic creation of parent directories.
Instructions
Write UTF-8 text content directly to a file inside a Docker container (creates or overwrites; use append=true to append instead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path inside the container. | |
| append | No | Append to the file instead of overwriting it. | |
| content | Yes | Text content to write to the container file. | |
| container | Yes | Docker container name or id. | |
| create_dirs | No | Create the parent directory in the container if it does not exist. |