All apps/Container

Container

container

A toolset for building and running Linux containers on macOS.

Runs as container|macOS, Linux, Windows|github.com

Command form

ai-draft · 3 tasks · 21 fields

Run a container or build an image with Apple's container CLI. Networking, mounts beyond -v, registry and resource-limit options are mostly left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui container

container run

Run a container
Run a containerExample values, fixed in this page — nothing here reaches a terminal
Basic
Image*
string
Command and arguments
string
Keep stdin open
--interactive
Allocate a TTY
--tty
Remove after it stops
--rm
Advanced
Environment variables
string
Bind mounts
string
TasksEach one presets the form for one job
Interactive shell
imageargsinteractivettyrmvolumeenv
Background service
imagenamedetachpublishenvvolume
ParametersOnly these flags are editable in the form
Image
string · positional 0
Command and arguments
string · positional 1 · repeatable
Container name
string
--name
Keep stdin open
boolean
--interactive-i
Allocate a TTY
boolean
--tty-t
Run in background
boolean
--detach-d
Remove after it stops
boolean
--rm
Environment variables
key=value, or just key to inherit from the host.
string · repeatable
--env-e
Published ports
[host-ip:]host-port:container-port[/protocol]
string · repeatable
--publish-p
Bind mounts
string · repeatable
--volume-v
Working directory
string
--workdir
CPUs
integer
--cpus-c
Memory
Optional K, M, G, T or P suffix.
string
--memory-m

container build

Build an image
Build an imageExample values, fixed in this page — nothing here reaches a terminal
Basic
Build context
directory
Image tag*
string
Dockerfile
file
Build args (key=val)
string
Target stage
string
TasksEach one presets the form for one job
Build and tag
contexttagfilebuild_argtarget
ParametersOnly these flags are editable in the form
Build context
path · positional 0
Image tag
string
--tag-t
Dockerfile
path
--file-f
Build args (key=val)
string · repeatable
--build-arg
Target stage
string
--target
Platform
string
--platform
No cache
boolean
--no-cache
Pull latest base image
boolean
--pull
SourcesEvery flag above is checked against these
help
USAGE: container run [<options>] <image> [<arguments> ...] -e, --env <env> Set environment variables (key=value, or just key to -i, --interactive Keep the standard input open even if not attached -t, --tty Open a TTY with the process -w, --workdir, --cwd <dir> -c, --cpus <cpus> Number of CPUs to allocate to the con…
helpcontainer CLI version 1.6.0
help
USAGE: build [<options>] [<context-dir>] <context-dir> Build directory (default: .) --build-arg <key=val> Set build-time variables -f, --file <path> Path to Dockerfile --no-cache Do not use cache --platform <platform> Add the platform to the build (format: -t, --tag <name> Name for the built image (default:…
helpcontainer CLI version 1.6.0

Before it fills your prompt, Otty checks the installed container against its version. A form that does not match your version is not offered.