Actions15
Overview
This node interacts with Docker to perform operations on Docker resources such as containers, images, volumes, and networks. Specifically, for the 'Container' resource with the 'List' operation, it retrieves a list of Docker containers based on optional filtering options provided as JSON. This is useful for scenarios where you need to programmatically manage or monitor Docker containers, such as listing all running containers or filtering containers by specific criteria.
Use Case Examples
- Listing all Docker containers to monitor active services.
- Filtering containers by status or label to manage deployments.
Properties
| Name | Meaning |
|---|---|
| Options | JSON object containing filtering options for listing Docker containers. |
Output
JSON
id- The unique identifier of the Docker container.names- Names assigned to the Docker container.image- The Docker image used by the container.state- Current state of the container (e.g., running, exited).status- Status description of the container.
Dependencies
- Docker API accessed via dockerode library
- Requires Docker API credentials
Troubleshooting
- Ensure Docker daemon is running and accessible from the environment where the node executes.
- Verify that the provided Docker API credentials are correct and have sufficient permissions.
- If the 'Options' JSON is malformed, the node may throw an error; ensure valid JSON syntax.
Links
- Docker API - Container List - Official Docker API documentation for listing containers, which this node utilizes.