Actions15
Overview
This node interacts with Docker to perform operations on Docker resources such as images, containers, volumes, and networks. Specifically, for the 'Image' resource with the 'Get' operation, it retrieves detailed information about a specific Docker image by its ID. This is useful for scenarios where you need to inspect or manage Docker images programmatically within an automation workflow, such as fetching metadata or status of a Docker image before deployment or cleanup.
Use Case Examples
- Retrieve detailed information about a Docker image by specifying its ID to monitor image usage or verify image properties before deployment.
- Use the node to automate Docker image management tasks in CI/CD pipelines by fetching image details dynamically.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the Docker image to retrieve information for. |
Output
JSON
id- The ID of the Docker image.repoTags- Tags associated with the Docker image.created- Timestamp when the Docker image was created.size- Size of the Docker image in bytes.virtualSize- Virtual size of the Docker image.labels- Labels assigned to the Docker image.
Dependencies
- Docker API accessed via dockerode library
- Requires Docker API credentials
Troubleshooting
- Ensure Docker credentials are correctly configured and accessible to avoid authentication errors.
- Verify the image ID is correct and exists in the Docker environment to prevent 'not found' errors.
- If the node throws 'No credentials got returned!' error, check that the Docker API credentials are properly set up in n8n.
- Errors related to Docker API connectivity may require checking Docker daemon status and network access.
Links
- Docker Image Inspect API - Official Docker API documentation for inspecting images, relevant to the 'Get' operation on images.