docker_copy
Copies files between a Docker container and the host in either direction, requiring confirmation and restricting host paths to allowed folders.
Instructions
Copy files between a container and the Docker host (docker cp). Needs confirm=true.
direction: to_container (host_path -> container_path) or from_container (container_path -> host_path). host_path must be in an allowed folder. Existing files at the destination are overwritten. keep_owner uses docker cp -a.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| confirm | No | ||
| container | Yes | ||
| direction | Yes | ||
| host_path | Yes | ||
| keep_owner | No | ||
| container_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |