Skip to main content

Docker

@hivemq/dockerv2026.06.26.156· 11d agoMODELS
01README

Thin swamp wrapper around the docker CLI. Image-lifecycle subset: build (single-platform, locally runnable), run, buildInspectPlatforms (build each arch single-arch with buildx --load + run an inspection command, capturing all output in one inspected resource — the verify-before-push primitive), login, and buildx build --push (multi-arch build + push). Each method mirrors a docker subcommand so workflows can drive the build/run/publish lifecycle without bespoke shell steps.

02Models1
@hivemq/dockerv2026.06.26.2docker.ts
fn build(dockerfile: string, tag: string, platform?: string, noCache?: boolean, instanceName?: string)
docker build: write the given Dockerfile into a throwaway context and build a single-platform, locally runnable image.
ArgumentTypeDescription
dockerfilestringFull Dockerfile content
tagstringImage tag to build (-t)
platform?stringos/arch to build
noCache?booleanPass --no-cache
instanceName?string
fn buildInspectPlatforms(dockerfile: string, tag: string, platforms: array, command: string, entrypoint?: string, noCache?: boolean, instanceName?: string)
docker buildx build --load per platform then docker run: build each platform single-arch, run `sh -c <command>` on it, and capture every platform's stdout in one resource. The verify-before-push primitive for multi-arch (the engine can't hold a multi-arch image); buildxBuild --push then re-runs from cache. Throws on a non-zero exit.
ArgumentTypeDescription
dockerfilestringFull Dockerfile content
tagstringBase image tag (each arch builds <tag>-<arch>)
platformsarrayos/arch platforms to build + inspect (>=1)
commandstringCommand passed to `-c` on each platform
entrypoint?stringEntrypoint; defaults to sh
noCache?booleanPass --no-cache
instanceName?string
fn buildxBuild(dockerfile: string, tag: string, platforms: array, noCache?: boolean, instanceName?: string)
docker buildx build --push: build a multi-arch image for the given platforms and push it (manifest list) in one step; captures the digest.
ArgumentTypeDescription
dockerfilestringFull Dockerfile content
tagstringImage tag to build + push
platformsarrayos/arch platforms (>=1)
noCache?booleanPass --no-cache
instanceName?string
fn run(image: string, command: string, platform?: string, entrypoint?: string, instanceName?: string)
docker run --rm: run `sh -c <command>` (or a custom entrypoint) in a throwaway container and capture stdout. Throws on a non-zero exit.
ArgumentTypeDescription
imagestringImage reference to run
commandstringCommand passed to `-c`
platform?stringos/arch to run
entrypoint?stringEntrypoint; defaults to sh
instanceName?string
fn login(registry: string, username: string, instanceName?: string)
docker login: authenticate to a registry; the password is piped on stdin (--password-stdin), never argv.
ArgumentTypeDescription
registrystringRegistry server name
usernamestringRegistry username
instanceName?string

Resources

build(infinite)— A single-platform `docker build` result
run(infinite)— A `docker run` result (stdout/stderr captured)
inspected(infinite)— A `buildInspectPlatforms` result: one command's stdout captured per platform (built single-arch and run)
pushed(infinite)— A `docker buildx build --push` result with the digest
login(infinite)— A `docker login` result
03Previous Versions2
2026.06.25.146Jun 25, 2026
2026.06.25.124Jun 25, 2026
04Stats
D
50 / 100
Downloads
4
Archive size
13.1 KB
  • Has README or module doc0/2missing
  • README has a code example0/1missing
  • README is substantive0/1pending
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared0/1missing
  • Verified public repository0/2missing
05Platforms
06Labels