Docker icon

Docker

Interact with Docker

Actions15

Image → Run

AI-generated

Overview

This node interacts with Docker to perform operations related to Docker images, containers, volumes, and networks. Specifically, for the 'Image' resource with the 'Run' operation, it pulls a specified Docker image and runs a container with a given command array. This is useful for automating Docker container execution within workflows, such as running scripts or applications inside containers dynamically.

Use Case Examples

  1. Running a Docker container from a specified image with a custom command array to automate tasks.
  2. Pulling the latest version of a Docker image and executing it with specific parameters in a workflow.

Properties

Name Meaning
Image The Docker image to pull and run as a container.
Command The command to execute inside the Docker container, provided as a JSON array of strings.

Output

JSON

  • stdout - Standard output from the Docker container execution.
  • stderr - Standard error output from the Docker container execution.

Dependencies

  • Docker API accessed via dockerode library
  • Requires Docker API credentials for authentication

Troubleshooting

  • Ensure the 'Command' property is a valid JSON array; otherwise, the node throws an error 'Command must be an array!'.
  • Verify Docker credentials are correctly configured; missing credentials cause 'No credentials got returned!' error.
  • Docker daemon must be running and accessible from the environment where the node executes.
  • Network or permission issues may prevent pulling images or running containers, leading to errors during execution.

Links

Discussion