Docker icon

Docker

Interact with Docker

Actions15

Overview

This node interacts with Docker to perform operations such as running containers, listing resources, and getting resource details. Specifically, the 'Run' operation pulls a specified Docker image and runs a container with a given command array, capturing the container's stdout and stderr output. This node is useful for automating Docker container management within workflows, such as running scripts inside containers or managing Docker resources programmatically.

Use Case Examples

  1. Run a Docker container with a specific image and command to execute a script or application inside the container.
  2. List Docker containers, images, volumes, or networks to monitor or manage Docker resources.
  3. Get detailed information about a specific Docker resource by its ID.

Properties

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

Output

JSON

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

Dependencies

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

Troubleshooting

  • Ensure Docker credentials are correctly configured; missing credentials will cause the node to throw an error.
  • The 'Command' property must be a valid JSON array; otherwise, the node throws an error indicating the command must be an array.
  • Docker daemon must be accessible and running; connection issues will prevent operations from succeeding.

Links

Discussion