Docker icon

Docker

Interact with Docker

Actions15

Overview

This node allows interaction with Docker, specifically enabling operations on Docker resources such as containers, images, volumes, and networks. For the Image - Get operation, it retrieves detailed information about a specific Docker image by its ID. This is useful in scenarios where you need to inspect image metadata, verify image existence, or gather details for automation workflows involving Docker images.

Practical examples include:

  • Fetching image details before deploying containers.
  • Auditing Docker images in your environment.
  • Integrating Docker image data into CI/CD pipelines.

Properties

Name Meaning
ID The unique identifier of the Docker image to retrieve information about.

Output

The node outputs JSON data representing the Docker image's details corresponding to the provided ID. This includes all metadata returned by the Docker API for an image, such as tags, creation date, size, labels, and other relevant properties.

No binary data output is produced by this operation.

Dependencies

  • Requires a valid Docker API credential (an API key or connection details) configured in n8n to authenticate and communicate with the Docker daemon.
  • The node depends on the dockerode library to interact with the Docker API.
  • The Docker service must be accessible from the environment where n8n runs.

Troubleshooting

  • No credentials got returned!
    This error occurs if the node cannot find or access the required Docker API credentials. Ensure that the credentials are properly set up and linked to the node.

  • Invalid ID or resource not found
    If the specified image ID does not exist or is incorrect, the Docker API will return an error. Verify the ID value is correct and that the Docker daemon has the image available.

  • Connection issues with Docker daemon
    Network or permission problems can prevent communication with Docker. Confirm that the Docker service is running and reachable from n8n.

Links and References

Discussion