Actions12
Overview
This node interacts with Docker to run containers, list resources, or get details about Docker entities. Specifically, the 'Run' operation under the 'Network' resource allows users to run Docker containers with specified images, commands, volume mounts, and working directories. This is useful for automating containerized workflows, testing containerized applications, or managing Docker resources programmatically.
Use Case Examples
- Run a Docker container with a specific image and command, mounting host volumes into the container for persistent storage or configuration.
- List Docker networks or other resources to monitor or manage Docker infrastructure.
- Retrieve details about a specific Docker network or container for auditing or debugging.
Properties
| Name | Meaning |
|---|---|
| Image | The Docker image to use for running the container. |
| Command | The command to execute inside the container, provided as a JSON array. |
| Volume Mounts | Host directories or Docker volumes to mount inside the container, including host path, container path, and read-only flag. |
| Working Directory | The working directory inside the container where commands will be executed. |
Output
JSON
stdout- Standard output from the executed Docker container command.stderr- Standard error output from the executed Docker container command.
Dependencies
- Docker daemon accessible via Dockerode library
- An API key credential for Docker authentication
Troubleshooting
- Ensure Docker daemon is running and accessible from the environment where the node executes.
- Verify that the Docker credentials provided are correct and have sufficient permissions.
- The 'Command' property must be a valid JSON array; otherwise, an error will be thrown.
- Volume mounts require both host path and container path to be specified; missing these will cause errors.
- If the Docker image is not available locally, the node will attempt to pull it; network issues may cause pull failures.