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.
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.
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.