// STRYKE-DOCKER — DOCKER CLIENT FOR STRYKE // CONTAINERS + IMAGES + NETWORKS + VOLUMES + BUILD + LOGS + EXEC + EVENTS

stryke package · CLI launcher dock · Rust helper stryke-docker-helper · opt-in (kept out of stryke core)

Report GitHub Issues
// Color scheme

>_STRYKE-DOCKER

The docker daemon, scriptable from a one-liner. Docker client for stryke. Containers, images, networks, volumes, build, logs, exec, events against any reachable Docker daemon (Docker Desktop, Linux daemon, Podman with the docker-API socket, remote DOCKER_HOST, TLS-wrapped). The CLI launcher is named dock (not docker) to avoid shadowing.

Install

# build the helper binary, install as a stryke package
cd ~/projects/stryke-docker
cargo build --release
s pkg install -g .

# one-liner
make install

# verify
dock --help

After install, dock --help works from anywhere on PATH (assuming ~/.stryke/bin/ is on PATH). The stryke library is auto-discoverable to any project that depends on the package via [deps] dock = { path = "..." } or, when published, by name.

CLI: dock

list running containersdock ps
tail container logsdock logs --tail 100 my-app
exec into a containerdock exec my-app sh
build an imagedock build -t my-app:dev .
watch eventsdock events
inspect a volumedock volume inspect mydata

The full flag matrix lives in the README "CLI" section.

Why a package, not a builtin

bollard + tokio for full daemon-API coverage — opt-in so the stryke core binary stays under 40 MB.

The stryke side is a thin NDJSON-pipe wrapper; the heavy code lives in the stryke-docker-helper sidecar binary and is loaded on demand. Core stryke is never linked against this package's deps.

Helper protocol

The stryke-docker-helper sidecar speaks newline-delimited JSON over stdin/stdout. The stryke library shells out per call and pipes structured data both ways. This keeps stryke startup small while making the package's surface area available on demand.

# manual invocation (debugging only)
echo '{"op":"version"}' | stryke-docker-helper

Layout

stryke-docker/
├── Cargo.toml             # bin = stryke-docker-helper (publish = false)
├── src/
│   └── main.rs           # helper binary entry point
├── lib/                   # stryke .stk wrapper(s)
├── stryke.toml            # stryke package manifest
├── t/                     # zunit-style tests
├── examples/              # runnable .stk examples
├── Makefile               # `make install` builds + installs
└── docs/                  # this site (GitHub Pages)

Sibling packages

Part of the stryke connector family. Browse the others via the MenkeTechnologiesMeta umbrella repo (Tier 2):