Actions15
Overview
This node interacts with Docker to perform operations on Docker resources such as containers, images, volumes, and networks. Specifically, for the 'Volume' resource with the 'Get' operation, it retrieves detailed information about a specific Docker volume by its ID. This is useful for scenarios where you need to inspect or manage Docker volumes programmatically within an automation workflow, such as checking volume details before backup or cleanup.
Use Case Examples
- Get detailed information about a Docker volume by specifying its ID to monitor storage usage or troubleshoot volume-related issues.
- Retrieve volume metadata to integrate with other systems or dashboards for Docker resource management.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the Docker volume to retrieve information for. |
Output
JSON
id- The ID of the Docker volume.Name- The name of the Docker volume.Driver- The driver used by the Docker volume.Mountpoint- The mount point path of the Docker volume on the host.Labels- Labels associated with the Docker volume.Scope- The scope of the Docker volume (e.g., local, global).Options- Options configured for the Docker volume.UsageData- Usage data related to the Docker volume, such as size and ref count.
Dependencies
- Docker API accessed via dockerode library
- Requires Docker API credentials
Troubleshooting
- Ensure Docker credentials are correctly configured and accessible by the node.
- If the volume ID is incorrect or does not exist, the node will throw an error indicating the volume could not be found.
- The node expects the volume ID as a string; providing an empty or invalid ID will result in an error.
Links
- Docker Volume Inspect API - Official Docker API documentation for inspecting volumes, which this node uses to get volume details.
- dockerode GitHub Repository - The Node.js Docker client library used by this node to interact with Docker.