containerkit

module
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: Apache-2.0

README

containerkit

Go Reference Go Version License

Containerkit is the Docker stack as a program. Define a stack in Go or TSX, then use one client to pull an image, bring up the Compose project, and inspect its services. Both languages share a Docker vocabulary, and the client covers both the Engine and Compose SDKs.

Export the project as Compose YAML, or the image definition as a Dockerfile. For live development, a docker.ts keeps the session open and reapplies the project only when the rendered YAML changes.

A project is a component

import { Compose, Service, Publish, Volume, Health, Env, Restart, exportYAML } from "containerkit";
import { proto, restartPolicy } from "containerkit/vocab";

const prod = process.env.NODE_ENV === "production";

export default function App() {
  return (
    <Compose name="app">
      <Volume name="data" />
      <Service
        name="api"
        image="alpine:latest"
        command={["sh", "-c", "mkdir -p /www && echo ok > /www/index.html && exec httpd -f -p 80 -h /www"]}
      >
        <Publish hostPort={8080} containerPort={80} protocol={proto.TCP} />
        <Volume source="data" target="/www" />
        <Restart policy={restartPolicy.UnlessStopped} />
        <Health test={["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/"]} interval="5s" retries={3} />
        <Env name="APP" value={prod ? "prod" : "dev"} />
      </Service>
    </Compose>
  );
}

export const yaml = exportYAML(<App />);

Containerkit generates its bindings from pinned Moby and Compose SDK versions. Updating the pins and regenerating picks up new upstream fields.

false disappears. .map() repeats a child. A function that returns a node is a component. examples/supabase is that stack in Go. The TypeScript programs you can run are under tsx/examples: nginx, WordPress and MySQL, a MongoDB replica set, and an interactive shell.

A Dockerfile is the other tree, in containerkit/dockerfile. <Run> joins into one layer. <RunLayer> starts the next. exportDockerfile prints the file. tsx/examples/nginx/docker.tsx builds that kind of file and publishes the site.

A container becomes a service

NewContainer and NewService write the same spec. EngineConfig turns that spec into the Engine SDK's Config, HostConfig, and NetworkingConfig. AsService copies the spec onto a Compose service, and ComposeConfig turns it into compose-go's ServiceConfig. NewService(FromContainer(worker)) and passing the container itself do the same copy.

worker := NewContainer(
    Name("api"),
    Image("alpine:latest"),
    Command("sh", "-c", "mkdir -p /www && echo ok > /www/index.html && exec httpd -f -p 80 -h /www"),
    Publish(Protocol(TCP), HostPort(8080), ContainerPort(80)),
)
svc := worker.AsService()

AutoRemove, PublishAll, ContainerIDFile, Shell, OnBuild, MaskedPath, and ReadonlyPath exist only on the Engine create call. They stay on the container. Validate on the service reports each one as an unsupported mapping.

It stays open

docker.ts default-exports root(). The session stays up for the life of the process. A later render applies the project only when the rendered YAML changes. Exporting the file does not stop it. tsx/examples/nginx/docker.tsx is a running copy: from tsx/, npm run nginx builds an nginx image, serves http://127.0.0.1:8080, and onExit: "down" takes the project down on Ctrl+C.

import { Compose, Service, Publish, Health } from "containerkit";
import { proto } from "containerkit/vocab";
import { root } from "containerkit/live";

export default root({ fromEnv: true }, function App() {
  return (
    <Compose name="app">
      <Service
        name="api"
        image="alpine:latest"
        command={["sh", "-c", "mkdir -p /www && echo ok > /www/index.html && exec httpd -f -p 80 -h /www"]}
      >
        <Publish hostPort={8080} containerPort={80} protocol={proto.TCP} />
        <Health test={["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/"]} interval="5s" retries={3} />
      </Service>
    </Compose>
  );
});

Commands are methods on that session. await app.pullImage("alpine:latest") runs, then the next line runs. useMemo writes the result to .containerkit/memo and skips the call the next time the same inputs come back.

The same words in Go

import . "github.com/aptd3v/containerkit/pkg/kit"

cli, err := Connect()
if err != nil {
    return err
}
defer cli.Close()

app := NewCompose("app").WithService(
    NewService(
        Name("api"),
        Image("alpine:latest"),
        Command("sh", "-c", "mkdir -p /www && echo ok > /www/index.html && exec httpd -f -p 80 -h /www"),
        Publish(Protocol(TCP), HostPort(8080), ContainerPort(80)),
    ),
)
if err := cli.Up(ctx, app); err != nil {
    return err
}

loaded, err := cli.Load(ctx, "compose.yaml")
if err != nil {
    return err
}
return loaded.Up(ctx)

Connect is the daemon. Run starts a container. Up applies a project. ImportFile reads a compose file with no daemon. Name, Image, Env, Memory, and ReadOnly mean the same thing on a container, a service, and a job. The compiler rejects a name on a scope that does not have it.

A few words only look the same:

Word Means
File A compose YAML path
FromFile Secret or config content
DockerfilePath The Dockerfile on a build
OutputFile An archive written by export
Publish A port mapping
PublishOCI The project published as an OCI artifact
Log The progress logger
Logging The container log driver
WorkingDir The directory inside the container
ProjectDirectory The compose project directory on disk

Test is the healthcheck command. Interval, Timeout, and Retries are the timing around it.

Current with upstream

The kit is generated from the modules it wraps: github.com/moby/moby/api, github.com/moby/moby/client, github.com/compose-spec/compose-go/v2, and github.com/docker/compose/v5, plus the image spec, OCI, and reference types beside them. gencatalog copies each exported type into internal/ under its original name. gentsx writes the TSX components and the session methods from that kit. Bump the modules, run go generate, and the tree moves with Docker.

Start

Go, from go.mod (1.26.8 or newer):

go get github.com/aptd3v/containerkit

Node 20 or newer:

npm install @aptd3v/containerkit

That install includes the runner. The containerkit command runs the binary for this machine.

CHANGELOG.md is what 0.8.3 contains.

Read the Go kit in order from docs/README.md: define a service, then run it. Read TypeScript from tsx/docs/README.md: trees, the live session, the client, commands, then Dockerfiles.

The TypeScript package lives in tsx/. A folder that extends containerkit/tsconfig.jsx.json compiles <Compose> without a per-file pragma. React and containerkit can share a repository. They cannot share a file.

A live session uses the containerkit command from that install. CONTAINERKIT_BIN overrides the bundled binary. The runner is validate, exec, and session. go run ./tools/crossbuild builds it for linux, darwin, and windows.

License

Apache 2.0. See LICENSE.

Directories

Path Synopsis
cmd
containerkit command
Command containerkit runs a containerkit plan or compose YAML against a Docker daemon.
Command containerkit runs a containerkit plan or compose YAML against a Docker daemon.
e2e
model
Package model holds the Compose models e2e test.
Package model holds the Compose models e2e test.
plugin
Package plugin holds the Engine plugin e2e test.
Package plugin holds the Engine plugin e2e test.
plugin/volumeplugin command
Volume plugin used by the containerkit plugin e2e test.
Volume plugin used by the containerkit plugin e2e test.
registry
Package registry holds the authenticated Docker registry e2e test.
Package registry holds the authenticated Docker registry e2e test.
swarm
Package swarm holds the 4-node Docker Swarm e2e cluster used to exercise pkg/kit against real Engine daemons.
Package swarm holds the 4-node Docker Swarm e2e cluster used to exercise pkg/kit against real Engine daemons.
terminal
Package terminal holds the Engine TTY e2e test.
Package terminal holds the Engine TTY e2e test.
examples
astronomy_shop command
Package main: write embedded Astronomy Shop bind-mount assets under a volumes path.
Package main: write embedded Astronomy Shop bind-mount assets under a volumes path.
compose_commands command
Build, up, ps, stop, start, restart, exec, images, top, pause, run, then down.
Build, up, ps, stop, start, restart, exec, images, top, pause, run, then down.
dockerfile command
Write a multi-stage Dockerfile, build it, and serve the page on port 8088.
Write a multi-stage Dockerfile, build it, and serve the page on port 8088.
events command
Stream compose events while nginx is started and stopped three times.
Stream compose events while nginx is started and stopped three times.
image_inline command
Build an image when the tag is missing, then bring the service up.
Build an image when the tag is missing, then bring the service up.
mongo_replica command
A MongoDB replica set with eight members and a Mongo Express console.
A MongoDB replica set with eight members and a Mongo Express console.
nginx command
Build nginx-example:latest from the files in this directory, then bring the service up on port 8080 with a develop watch.
Build nginx-example:latest from the files in this directory, then bring the service up on port 8080 with a develop watch.
profiles command
Profiles hide services until the matching profile is active.
Profiles hide services until the matching profile is active.
simple command
Bring up one Alpine container that prints hello and exits.
Bring up one Alpine container that prints hello and exits.
supabase command
Supabase example: a self-hosted stack built with containerkit.
Supabase example: a self-hosted stack built with containerkit.
taskflow command
A CI-shaped task graph: build an image, bring a database up, run tests in parallel, retry a flaky step, then tag the image only when everything passed.
A CI-shaped task graph: build an image, bring a database up, run tests in parallel, retry a flaky step, then tag the image only when everything passed.
terminal command
Build an image with its own user, start it under a hostname, and attach a shell.
Build an image with its own user, start it under a hostname, and attach a shell.
wordpress command
Three WordPress containers behind HAProxy, with MySQL and, off Windows, Portainer.
Three WordPress containers behind HAProxy, with MySQL and, off Windows, Portainer.
internal
client/jsonmessage/types
Package types catalogs github.com/moby/moby/client/pkg/jsonmessage for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client/pkg/jsonmessage for wrapping by containerkit.
client/progress/types
Package types catalogs github.com/moby/moby/client/pkg/progress for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client/pkg/progress for wrapping by containerkit.
client/security/types
Package types catalogs github.com/moby/moby/client/pkg/security for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client/pkg/security for wrapping by containerkit.
client/types
Package types catalogs github.com/moby/moby/client for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client for wrapping by containerkit.
compose/api/types
Package types catalogs github.com/docker/compose/v5/pkg/api for wrapping by containerkit.
Package types catalogs github.com/docker/compose/v5/pkg/api for wrapping by containerkit.
compose/cli/types
Package types catalogs github.com/compose-spec/compose-go/v2/cli for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/cli for wrapping by containerkit.
compose/consts/types
Package types catalogs github.com/compose-spec/compose-go/v2/consts for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/consts for wrapping by containerkit.
compose/dotenv/types
Package types catalogs github.com/compose-spec/compose-go/v2/dotenv for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/dotenv for wrapping by containerkit.
compose/graph/types
Package types catalogs github.com/compose-spec/compose-go/v2/graph for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/graph for wrapping by containerkit.
compose/interpolation/types
Package types catalogs github.com/compose-spec/compose-go/v2/interpolation for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/interpolation for wrapping by containerkit.
compose/loader/types
Package types catalogs github.com/compose-spec/compose-go/v2/loader for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/loader for wrapping by containerkit.
compose/paths/types
Package types catalogs github.com/compose-spec/compose-go/v2/paths for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/paths for wrapping by containerkit.
compose/template/types
Package types catalogs github.com/compose-spec/compose-go/v2/template for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/template for wrapping by containerkit.
compose/transform/types
Package types catalogs github.com/compose-spec/compose-go/v2/transform for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/transform for wrapping by containerkit.
compose/tree/types
Package types catalogs github.com/compose-spec/compose-go/v2/tree for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/tree for wrapping by containerkit.
compose/types
Package types catalogs github.com/compose-spec/compose-go/v2/types for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/types for wrapping by containerkit.
compose/utils/types
Package types catalogs github.com/compose-spec/compose-go/v2/utils for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/utils for wrapping by containerkit.
connections/nat/types
Package types catalogs github.com/docker/go-connections/nat for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/nat for wrapping by containerkit.
connections/proxy/types
Package types catalogs github.com/docker/go-connections/proxy for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/proxy for wrapping by containerkit.
connections/sockets/types
Package types catalogs github.com/docker/go-connections/sockets for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/sockets for wrapping by containerkit.
connections/tlsconfig/types
Package types catalogs github.com/docker/go-connections/tlsconfig for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/tlsconfig for wrapping by containerkit.
digest/types
Package types catalogs github.com/opencontainers/go-digest for wrapping by containerkit.
Package types catalogs github.com/opencontainers/go-digest for wrapping by containerkit.
engine/auxprogress/types
Package types catalogs github.com/moby/moby/api/types/auxprogress for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/auxprogress for wrapping by containerkit.
engine/blkiodev/types
Package types catalogs github.com/moby/moby/api/types/blkiodev for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/blkiodev for wrapping by containerkit.
engine/build/types
Package types catalogs github.com/moby/moby/api/types/build for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/build for wrapping by containerkit.
engine/checkpoint/types
Package types catalogs github.com/moby/moby/api/types/checkpoint for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/checkpoint for wrapping by containerkit.
engine/common/types
Package types catalogs github.com/moby/moby/api/types/common for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/common for wrapping by containerkit.
engine/container/types
Package types catalogs github.com/moby/moby/api/types/container for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/container for wrapping by containerkit.
engine/events/types
Package types catalogs github.com/moby/moby/api/types/events for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/events for wrapping by containerkit.
engine/image/types
Package types catalogs github.com/moby/moby/api/types/image for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/image for wrapping by containerkit.
engine/jsonstream/types
Package types catalogs github.com/moby/moby/api/types/jsonstream for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/jsonstream for wrapping by containerkit.
engine/mount/types
Package types catalogs github.com/moby/moby/api/types/mount for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/mount for wrapping by containerkit.
engine/network/types
Package types catalogs github.com/moby/moby/api/types/network for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/network for wrapping by containerkit.
engine/plugin/types
Package types catalogs github.com/moby/moby/api/types/plugin for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/plugin for wrapping by containerkit.
engine/registry/types
Package types catalogs github.com/moby/moby/api/types/registry for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/registry for wrapping by containerkit.
engine/stdcopy/types
Package types catalogs github.com/moby/moby/api/pkg/stdcopy for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/pkg/stdcopy for wrapping by containerkit.
engine/storage/types
Package types catalogs github.com/moby/moby/api/types/storage for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/storage for wrapping by containerkit.
engine/strslice/types
Package types catalogs github.com/moby/moby/api/types/strslice for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/strslice for wrapping by containerkit.
engine/swarm/types
Package types catalogs github.com/moby/moby/api/types/swarm for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/swarm for wrapping by containerkit.
engine/system/types
Package types catalogs github.com/moby/moby/api/types/system for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/system for wrapping by containerkit.
engine/types
Package types catalogs github.com/moby/moby/api/types for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types for wrapping by containerkit.
engine/volume/types
Package types catalogs github.com/moby/moby/api/types/volume for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/volume for wrapping by containerkit.
imagespec/types
Package types catalogs github.com/moby/docker-image-spec/specs-go/v1 for wrapping by containerkit.
Package types catalogs github.com/moby/docker-image-spec/specs-go/v1 for wrapping by containerkit.
oci/types
Package types catalogs github.com/opencontainers/image-spec/specs-go/v1 for wrapping by containerkit.
Package types catalogs github.com/opencontainers/image-spec/specs-go/v1 for wrapping by containerkit.
reference/types
Package types catalogs github.com/distribution/reference for wrapping by containerkit.
Package types catalogs github.com/distribution/reference for wrapping by containerkit.
units/types
Package types catalogs github.com/docker/go-units for wrapping by containerkit.
Package types catalogs github.com/docker/go-units for wrapping by containerkit.
pkg
avail
Package avail is the Swarm node-availability vocabulary.
Package avail is the Swarm node-availability vocabulary.
cap
Package cap is the Linux capability vocabulary for CapAdd and CapDrop.
Package cap is the Linux capability vocabulary for CapAdd and CapDrop.
cascade
Package cascade is the Compose start/up OnExit vocabulary.
Package cascade is the Compose start/up OnExit vocabulary.
cgroupns
Package cgroupns is the cgroup namespace mode vocabulary.
Package cgroupns is the cgroup namespace mode vocabulary.
depend
Package depend is the Compose depends_on condition vocabulary.
Package depend is the Compose depends_on condition vocabulary.
df
Package df is the Engine DiskUsage object-type vocabulary.
Package df is the Engine DiskUsage object-type vocabulary.
endpoint
Package endpoint is the Swarm endpoint_mode vocabulary.
Package endpoint is the Swarm endpoint_mode vocabulary.
failact
Package failact is the Swarm update/rollback failure_action vocabulary.
Package failact is the Swarm update/rollback failure_action vocabulary.
ipc
Package ipc is the IPC namespace mode vocabulary.
Package ipc is the IPC namespace mode vocabulary.
isolation
Package isolation is the Windows isolation vocabulary.
Package isolation is the Windows isolation vocabulary.
kit
Package kit is one vocabulary for Docker Engine and Compose.
Package kit is one vocabulary for Docker Engine and Compose.
kit/internal/client/jsonmessage/types
Package types catalogs github.com/moby/moby/client/pkg/jsonmessage for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client/pkg/jsonmessage for wrapping by containerkit.
kit/internal/client/progress/types
Package types catalogs github.com/moby/moby/client/pkg/progress for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client/pkg/progress for wrapping by containerkit.
kit/internal/client/security/types
Package types catalogs github.com/moby/moby/client/pkg/security for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client/pkg/security for wrapping by containerkit.
kit/internal/client/types
Package types catalogs github.com/moby/moby/client for wrapping by containerkit.
Package types catalogs github.com/moby/moby/client for wrapping by containerkit.
kit/internal/compose/api/types
Package types catalogs github.com/docker/compose/v5/pkg/api for wrapping by containerkit.
Package types catalogs github.com/docker/compose/v5/pkg/api for wrapping by containerkit.
kit/internal/compose/cli/types
Package types catalogs github.com/compose-spec/compose-go/v2/cli for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/cli for wrapping by containerkit.
kit/internal/compose/consts/types
Package types catalogs github.com/compose-spec/compose-go/v2/consts for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/consts for wrapping by containerkit.
kit/internal/compose/dotenv/types
Package types catalogs github.com/compose-spec/compose-go/v2/dotenv for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/dotenv for wrapping by containerkit.
kit/internal/compose/graph/types
Package types catalogs github.com/compose-spec/compose-go/v2/graph for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/graph for wrapping by containerkit.
kit/internal/compose/interpolation/types
Package types catalogs github.com/compose-spec/compose-go/v2/interpolation for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/interpolation for wrapping by containerkit.
kit/internal/compose/loader/types
Package types catalogs github.com/compose-spec/compose-go/v2/loader for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/loader for wrapping by containerkit.
kit/internal/compose/paths/types
Package types catalogs github.com/compose-spec/compose-go/v2/paths for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/paths for wrapping by containerkit.
kit/internal/compose/template/types
Package types catalogs github.com/compose-spec/compose-go/v2/template for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/template for wrapping by containerkit.
kit/internal/compose/transform/types
Package types catalogs github.com/compose-spec/compose-go/v2/transform for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/transform for wrapping by containerkit.
kit/internal/compose/tree/types
Package types catalogs github.com/compose-spec/compose-go/v2/tree for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/tree for wrapping by containerkit.
kit/internal/compose/types
Package types catalogs github.com/compose-spec/compose-go/v2/types for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/types for wrapping by containerkit.
kit/internal/compose/utils/types
Package types catalogs github.com/compose-spec/compose-go/v2/utils for wrapping by containerkit.
Package types catalogs github.com/compose-spec/compose-go/v2/utils for wrapping by containerkit.
kit/internal/connections/nat/types
Package types catalogs github.com/docker/go-connections/nat for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/nat for wrapping by containerkit.
kit/internal/connections/proxy/types
Package types catalogs github.com/docker/go-connections/proxy for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/proxy for wrapping by containerkit.
kit/internal/connections/sockets/types
Package types catalogs github.com/docker/go-connections/sockets for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/sockets for wrapping by containerkit.
kit/internal/connections/tlsconfig/types
Package types catalogs github.com/docker/go-connections/tlsconfig for wrapping by containerkit.
Package types catalogs github.com/docker/go-connections/tlsconfig for wrapping by containerkit.
kit/internal/digest/types
Package types catalogs github.com/opencontainers/go-digest for wrapping by containerkit.
Package types catalogs github.com/opencontainers/go-digest for wrapping by containerkit.
kit/internal/engine/auxprogress/types
Package types catalogs github.com/moby/moby/api/types/auxprogress for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/auxprogress for wrapping by containerkit.
kit/internal/engine/blkiodev/types
Package types catalogs github.com/moby/moby/api/types/blkiodev for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/blkiodev for wrapping by containerkit.
kit/internal/engine/build/types
Package types catalogs github.com/moby/moby/api/types/build for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/build for wrapping by containerkit.
kit/internal/engine/checkpoint/types
Package types catalogs github.com/moby/moby/api/types/checkpoint for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/checkpoint for wrapping by containerkit.
kit/internal/engine/common/types
Package types catalogs github.com/moby/moby/api/types/common for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/common for wrapping by containerkit.
kit/internal/engine/container/types
Package types catalogs github.com/moby/moby/api/types/container for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/container for wrapping by containerkit.
kit/internal/engine/events/types
Package types catalogs github.com/moby/moby/api/types/events for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/events for wrapping by containerkit.
kit/internal/engine/image/types
Package types catalogs github.com/moby/moby/api/types/image for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/image for wrapping by containerkit.
kit/internal/engine/jsonstream/types
Package types catalogs github.com/moby/moby/api/types/jsonstream for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/jsonstream for wrapping by containerkit.
kit/internal/engine/mount/types
Package types catalogs github.com/moby/moby/api/types/mount for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/mount for wrapping by containerkit.
kit/internal/engine/network/types
Package types catalogs github.com/moby/moby/api/types/network for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/network for wrapping by containerkit.
kit/internal/engine/plugin/types
Package types catalogs github.com/moby/moby/api/types/plugin for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/plugin for wrapping by containerkit.
kit/internal/engine/registry/types
Package types catalogs github.com/moby/moby/api/types/registry for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/registry for wrapping by containerkit.
kit/internal/engine/stdcopy/types
Package types catalogs github.com/moby/moby/api/pkg/stdcopy for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/pkg/stdcopy for wrapping by containerkit.
kit/internal/engine/storage/types
Package types catalogs github.com/moby/moby/api/types/storage for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/storage for wrapping by containerkit.
kit/internal/engine/strslice/types
Package types catalogs github.com/moby/moby/api/types/strslice for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/strslice for wrapping by containerkit.
kit/internal/engine/swarm/types
Package types catalogs github.com/moby/moby/api/types/swarm for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/swarm for wrapping by containerkit.
kit/internal/engine/system/types
Package types catalogs github.com/moby/moby/api/types/system for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/system for wrapping by containerkit.
kit/internal/engine/types
Package types catalogs github.com/moby/moby/api/types for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types for wrapping by containerkit.
kit/internal/engine/volume/types
Package types catalogs github.com/moby/moby/api/types/volume for wrapping by containerkit.
Package types catalogs github.com/moby/moby/api/types/volume for wrapping by containerkit.
kit/internal/imagespec/types
Package types catalogs github.com/moby/docker-image-spec/specs-go/v1 for wrapping by containerkit.
Package types catalogs github.com/moby/docker-image-spec/specs-go/v1 for wrapping by containerkit.
kit/internal/oci/types
Package types catalogs github.com/opencontainers/image-spec/specs-go/v1 for wrapping by containerkit.
Package types catalogs github.com/opencontainers/image-spec/specs-go/v1 for wrapping by containerkit.
kit/internal/reference/types
Package types catalogs github.com/distribution/reference for wrapping by containerkit.
Package types catalogs github.com/distribution/reference for wrapping by containerkit.
kit/internal/units/types
Package types catalogs github.com/docker/go-units for wrapping by containerkit.
Package types catalogs github.com/docker/go-units for wrapping by containerkit.
logdrv
Package logdrv is the Engine log-driver vocabulary.
Package logdrv is the Engine log-driver vocabulary.
logic
Package logic groups kit setters and applies them under control-flow helpers.
Package logic groups kit setters and applies them under control-flow helpers.
netdrv
Package netdrv is the Engine/Compose network-driver vocabulary.
Package netdrv is the Engine/Compose network-driver vocabulary.
netmode
Package netmode is the container network-mode vocabulary.
Package netmode is the container network-mode vocabulary.
oci
Package oci is the Compose publish OCI manifest-version vocabulary.
Package oci is the Compose publish OCI manifest-version vocabulary.
order
Package order is the Swarm update/rollback order vocabulary.
Package order is the Swarm update/rollback order vocabulary.
pidns
Package pidns is the PID namespace mode vocabulary.
Package pidns is the PID namespace mode vocabulary.
portmode
Package portmode is the Compose ports.mode vocabulary.
Package portmode is the Compose ports.mode vocabulary.
progress
Package progress is the Compose / logger progress-mode vocabulary.
Package progress is the Compose / logger progress-mode vocabulary.
propagate
Package propagate is the bind-mount propagation vocabulary.
Package propagate is the bind-mount propagation vocabulary.
proto
Package proto is the IP protocol vocabulary for Publish and Expose.
Package proto is the IP protocol vocabulary for Publish and Expose.
pull
Package pull is the Compose pull_policy vocabulary.
Package pull is the Compose pull_policy vocabulary.
recursive
Package recursive is the Compose bind.recursive vocabulary.
Package recursive is the Compose bind.recursive vocabulary.
restart
Package restart is the container restart-policy vocabulary.
Package restart is the container restart-policy vocabulary.
role
Package role is the Swarm node-role vocabulary.
Package role is the Swarm node-role vocabulary.
scheme
Package scheme is the Engine client URL-scheme vocabulary.
Package scheme is the Engine client URL-scheme vocabulary.
selinux
Package selinux is the bind-mount SELinux relabel vocabulary.
Package selinux is the bind-mount SELinux relabel vocabulary.
signal
Package signal is the POSIX signal vocabulary for StopSignal and Kill.
Package signal is the POSIX signal vocabulary for StopSignal and Kill.
svcmode
Package svcmode is the Compose deploy.mode / Swarm service-mode vocabulary.
Package svcmode is the Compose deploy.mode / Swarm service-mode vocabulary.
taskflow
Package taskflow is an optional DAG runner for containerkit.
Package taskflow is an optional DAG runner for containerkit.
terminal
Package terminal attaches a local terminal to a hijacked container stream.
Package terminal attaches a local terminal to a hijacked container stream.
userns
Package userns is the user namespace mode vocabulary.
Package userns is the user namespace mode vocabulary.
uts
Package uts is the UTS namespace mode vocabulary.
Package uts is the UTS namespace mode vocabulary.
vol
Package vol is the mount-type vocabulary for Volume Kind.
Package vol is the mount-type vocabulary for Volume Kind.
wait
Package wait is the Engine container-wait condition vocabulary.
Package wait is the Engine container-wait condition vocabulary.
watch
Package watch is the Compose develop.watch action vocabulary.
Package watch is the Compose develop.watch action vocabulary.
tools
crossbuild command
Command crossbuild compiles cmd/containerkit for linux, darwin, and windows on amd64 and arm64 into dist/ as archives plus checksums.txt, and copies each binary into npm/@aptd3v/containerkit-<os>-<arch>/bin.
Command crossbuild compiles cmd/containerkit for linux, darwin, and windows on amd64 and arm64 into dist/ as archives plus checksums.txt, and copies each binary into npm/@aptd3v/containerkit-<os>-<arch>/bin.
gencatalog command
Command gencatalog extracts exported types from the Docker Engine API, Engine client, Compose-Go, Compose v5 API, and adjacent Docker modules, then writes documented type aliases into internal/<domain>/types.
Command gencatalog extracts exported types from the Docker Engine API, Engine client, Compose-Go, Compose v5 API, and adjacent Docker modules, then writes documented type aliases into internal/<domain>/types.
gentsx command
Command gentsx reads pkg/kit option interfaces and setters and writes tsx/src/generated.ts — TSX component types aligned with the Go vocabulary.
Command gentsx reads pkg/kit option interfaces and setters and writes tsx/src/generated.ts — TSX component types aligned with the Go vocabulary.
pkgimports command
Command pkgimports lists package imports under internal/, grouped by similar Go module, sorted from most used to least used.
Command pkgimports lists package imports under internal/, grouped by similar Go module, sorted from most used to least used.
unusedtypes command
Command unusedtypes lists exported types under internal/ that pkg/kit does not reference.
Command unusedtypes lists exported types under internal/ that pkg/kit does not reference.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL