Docker icon

Docker

Interact with Docker

Actions12

Overview

This node interacts with Docker to perform operations on Docker resources, specifically containers in this context. For the 'Container' resource and 'Get' operation, it retrieves detailed information about a specific Docker container by its ID. This is useful for scenarios where you need to monitor, inspect, or manage Docker containers programmatically within an automation workflow, such as fetching container status, configuration, or runtime details.

Use Case Examples

  1. Retrieve detailed information about a running Docker container by specifying its container ID.
  2. Use the node to get container metadata for monitoring or logging purposes in a CI/CD pipeline.

Properties

Name Meaning
ID The unique identifier of the Docker container to retrieve information for.

Output

JSON

  • Id - The unique identifier of the container.
  • Name - The name of the container.
  • State - The current state of the container (e.g., running, exited).
  • Config - Configuration details of the container.
  • NetworkSettings - Network settings and information related to the container.
  • Mounts - Information about volumes and mounts associated with 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 container ID provided is correct and the container exists on the Docker host.
  • 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 will fail to retrieve information.

Discussion