This guide walks you through installing podman-ts, establishing a connection to Podman, and running your first container end-to-end — from pulling an image to removing the stopped container.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Pratyay360/podman-ts/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites: Bun >= 1.0 and a running Podman daemon. Verify with
bun --version and podman info.Connect to Podman
Create a The default resolution order is:
PodmanClient. With no arguments, the client resolves the connection automatically.- If
connectionis set, the named service fromcontainers.confis used. - If the active Podman service is a machine, its URL is used.
- Otherwise the local Unix socket is used —
/run/podman/podman.sockfor root, or$XDG_RUNTIME_DIR/podman/podman.sockfor rootless.
List containers
Retrieve all containers (including stopped ones) and print their IDs, names, and status.Pass
{ all: false } (the default) to list only running containers.Pull an image
Pull an image from a registry using its full reference. The method returns an
Image instance with the resolved tags.Next steps
PodmanClient options
Configure the client with a custom URL, named connection, API version, and timeout.
Containers
Full reference for
client.containers — create, run, inspect, exec, stream logs, and more.Images
Pull, push, build, search, and manage images with
client.images.Error handling
Handle typed errors like
ImageNotFound, ContainerError, and APIError.