Portainer icon

Portainer

Interact with Portainer via API

Actions190

Docker → Docker Container Gpus Inspect

AI-generated

Overview

This node interacts with the Portainer API to inspect GPU details of a specific Docker container within a given environment. It is useful for scenarios where users need to retrieve detailed information about the GPUs allocated or used by a particular container managed through Portainer. For example, system administrators or DevOps engineers can use this node to monitor GPU usage or troubleshoot GPU-related issues in containerized applications.

Properties

Name Meaning
Environment Id Numeric identifier of the target environment where the Docker container runs.
Container Id Numeric identifier of the Docker container whose GPU details are to be inspected.

Output

The node outputs JSON data containing detailed information about the GPUs associated with the specified Docker container. This typically includes GPU identifiers, status, and other relevant metadata as returned by the Portainer API. The output does not include binary data.

Dependencies

  • Requires an active connection to a Portainer instance via its API.
  • Needs an API authentication token configured in the node credentials to authorize requests.
  • The base URL for the Portainer API must be set in the credentials configuration.

Troubleshooting

  • Invalid Environment or Container Id: If the provided IDs do not correspond to existing resources, the API will likely return an error. Verify that the IDs are correct and exist in the Portainer environment.
  • Authentication Errors: Missing or incorrect API credentials will cause authorization failures. Ensure the API key/token is valid and has sufficient permissions.
  • Network Issues: Connectivity problems between n8n and the Portainer server can cause request failures. Check network settings and firewall rules.
  • API Changes: If the Portainer API changes, the node might fail to parse responses correctly. Keep the node and API versions compatible.

Links and References

Discussion