Skip to main content
Build and manage Docker images for your Truss.

build

Build the Docker image for a Truss.

Options

TEXT
Docker image tag.
Use the host network for the Docker build.
humanfriendly | W | WARNING | I | INFO | D | DEBUG
default:"humanfriendly"
Logging verbosity. humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.
Disable interactive prompts. Use in CI/automated contexts where stdin isn’t a TTY.

Arguments

TEXT
A Truss directory. Defaults to current directory.
TEXT
Image context directory. If not provided, a temp directory is created.
Example: Build a Docker image for your Truss:
Build with a custom tag:

build-context

Create a Docker build context for a Truss without building the image.

Options

humanfriendly | W | WARNING | I | INFO | D | DEBUG
default:"humanfriendly"
Logging verbosity. humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.
Disable interactive prompts. Use in CI/automated contexts where stdin isn’t a TTY.

Arguments

TEXT
required
Directory where image context is created.
TEXT
A Truss directory. Defaults to current directory.
Example: Create a build context in a specific directory:

run

Run the Docker image for a Truss locally.

Options

TEXT
Docker image tag to run.
INTEGER
default:"8080"
Local port to expose the model on.
Attach to the container process.
Use the host network for the Docker build and run.
humanfriendly | W | WARNING | I | INFO | D | DEBUG
default:"humanfriendly"
Logging verbosity. humanfriendly (default) is pretty-printed; INFO, DEBUG, WARNING produce structured logs.
Disable interactive prompts. Use in CI/automated contexts where stdin isn’t a TTY.

Arguments

TEXT
A Truss directory. Defaults to current directory.
TEXT
Image context directory. If not provided, a temp directory is created.
Example: Build and run a Truss locally:
Run on a custom port:
Run in attached mode: