loading
loading
Utilities
Execute a custom script for a provided Docker image.
overview
docker-exec-sh takes a list of Docker images and a shell script, then runs that script inside each image and collects whatever it writes. It is the escape hatch for tools that ship as containers but have no dedicated node yet, so you can wrap any image's command line as a step in a larger pipeline.
Because the script is yours, the behaviour is whatever you write: install a package, run a scanner, transform a file, or chain several commands together. The image list lets one run fan the same script across multiple images, handy for comparing tool versions or checking a fleet of base images.
On Trickest, docker-exec-sh is a Utilities node that reads an image-list file and a script file, then writes a folder of output. Reach for it to slot a container-only tool into a recon-to-results workflow without rebuilding that tool as a native node.
use cases
Point the script at an image's binary and run it in place, so a tool that ships only as a Docker image becomes a reusable workflow step with folder output.
Feed an image-list to run the same script against each image, handy for comparing tool versions or checking a set of base images in a single pass.
Run a container-only scanner or parser mid-workflow and hand its output folder to the next node, with no rebuild of that tool as a native node.
Test a tool's command line inside its own image first, then promote it to a dedicated node once the workflow shape has settled.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| image-list | FILE | · | List of Docker images, one per line, where the script runs. |
| script-to-be-executed | FILE | · | Shell script executed inside each image from the list. |
Showing key inputs. docker-exec-sh exposes 2 inputs in total.
example
# docker-exec-sh runs script-to-be-executed inside each image in image-list# image-list: trickest/nuclei:latest# script-to-be-executed:nuclei -u https://example.com -severity critical,high -o /output/findings.txt[docker-exec-sh] image-list: 2 images[docker-exec-sh] trickest/httpx:latest -> running scripthttps://example.com [200] [Example Domain] [nginx]https://staging.example.com [200] [Staging] [nginx][docker-exec-sh] trickest/httpx:v1.6.0 -> running scripthttps://example.com [200] [Example Domain] [nginx][docker-exec-sh] collected output/ (2 images, exit 0)guidance
Reach for docker-exec-sh when the tool you need ships as a Docker image and has no native node. Write the script that runs it, list the image, and collect the folder of output. For a tool that already has a node, use that node instead for cleaner inputs and outputs.
Another Utilities helper for workflow plumbing. docker-exec-sh runs an arbitrary container command, not a check.
Stream-processing utility for deduplicating lines. A sibling utility for a narrower job.
faq
related
Import, export, and link workflow data with Airtable.
Decode Android APK files into smali sources and resources.
Check a file's values against conditions and exit with a matching code.
Extract all hosted zones from AWS Route53.
Output file lines by batch size, given START_LINE and END_LINE.
Extract a batch range from a file's lines or a folder's files, with parallel processing.
An image list and a script feed docker-exec-sh, which runs the script inside each image and writes the collected output as a queryable folder.
Facts on this page come from the live Trickest tool library.