Skip to content

Container CLI Commands

A container platform for macOS

Download the latest release from GitHub Releases and follow the instructions for your platform.

Terminal window
container [--debug] <subcommand>
  • --debug - Enable debug output [environment: CONTAINER_DEBUG]
  • --version - Show the version
  • -h, --help - Show help information

Commands for managing containers

Commands for managing container images

Commands for managing container registries

Commands for managing system components

Run an interactive Ubuntu container with bash shell

Terminal window
container run -it ubuntu:latest bash

Show both running and stopped containers

Terminal window
container list --all

Build an image from current directory with tag

Terminal window
container build -t myapp:latest .

Download the latest nginx image

Terminal window
container images pull nginx:latest

Follow the logs of a running container

Terminal window
container logs --follow mycontainer

Execute an interactive bash session in running container

Terminal window
container exec -it mycontainer bash

Stop all running containers

Terminal window
container stop --all

Clean up dangling and unreferenced images

Terminal window
container images prune

Show the status of container services

Terminal window
container system status

Mount a host directory into the container

Terminal window
container run -v /host/path:/container/path myimage