Actions12
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 access and manage Docker containers, for example, to monitor running containers, gather container metadata, or automate container management tasks.
Use Case Examples
- List all Docker containers with specific filters such as status or labels by providing JSON options.
- Retrieve detailed information about all containers to integrate with monitoring or reporting workflows.
Properties
| Name | Meaning |
|---|---|
| Options | JSON object containing filtering options for listing containers, such as filters for status, labels, or other Docker container attributes. |
Output
JSON
id- Unique identifier of the Docker container.names- Names assigned to the container.image- 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 API credentials are correctly configured and accessible by the node.
- Verify that the JSON provided in the Options property is valid and correctly formatted.
- Common error: 'No credentials got returned!' indicates missing or misconfigured Docker API credentials.
- If the node returns empty results, check Docker daemon status and container availability.
Links
- Docker API - Container List - Official Docker API documentation for listing containers, detailing available filters and response structure.