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 'Get' operation, it retrieves detailed information about a specific Docker container identified by its ID. This is useful for scenarios where you need to inspect or manage Docker containers programmatically within an automation workflow, such as monitoring container status or fetching container metadata.
Use Case Examples
- Retrieve detailed information about a Docker container by specifying its container ID to monitor its status or configuration.
- Use the node to get container details as part of a larger workflow that manages Docker resources automatically.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the Docker container to retrieve information for. |
Output
JSON
id- The ID of the Docker container.name- The name of the Docker container.state- The current state of the Docker container.status- The status of the Docker container.image- The image used by the Docker container.created- The creation timestamp of the Docker container.ports- The network ports exposed by the Docker container.mounts- The storage mounts associated with the Docker container.
Dependencies
- Docker API accessed via dockerode library
- Requires Docker API credentials
Troubleshooting
- Ensure Docker credentials are correctly configured and accessible by the node.
- Verify that the container ID provided is valid and corresponds to an existing container.
- Common error: 'No credentials got returned!' indicates missing or misconfigured Docker API credentials.
- If the container ID is invalid or the container does not exist, the node may return an error or empty result.
Links
- Docker Engine API - Container Inspect - Official Docker API documentation for inspecting container details.
- dockerode GitHub Repository - Node.js Docker API client used by the node to interact with Docker.