Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Containers

teeup runs containers with Colima and the Docker command-line client. colima is a lazy capability.

CommandWhat it does
docker ...The first time, teeup asks you to install Colima, then runs your command.
teeup install colimaInstalls Colima immediately.
colima-start, colima-stopStarts or stops the virtual machine. These aliases are available after you install Colima.
colima statusShows the status of the virtual machine.
teeup remove colimaStops the virtual machine, then uninstalls Colima, Docker, and Compose.

What gets installed

PackageHomebrewMacPorts
Colimacolimacolima
Docker CLIdockerdocker
Composedocker-composedocker-compose-plugin

On Homebrew, teeup links the Compose plugin into ~/.docker/cli-plugins, so docker compose runs as a subcommand. If you set DOCKER_CONFIG, teeup puts the link under that directory instead.

The first run

When teeup configures Colima, it starts the virtual machine. The first docker ps takes time, because it installs the packages, starts the virtual machine, and lists the containers. Colima sets itself as the default Docker context.

docker ps          # installs, starts Colima, then lists containers
docker run --rm hello-world

After a restart

The virtual machine does not start at login, so after a restart, start it before you use Docker:

colima start

If the virtual machine does not run, teeup configure colima starts it. teeup update does not configure lazy capabilities, and does not start the virtual machine.

Removing it

teeup remove colima stops an active virtual machine first, and if colima stop fails, teeup stops. On Homebrew, it also removes the Compose plugin link that it made.

Do not uninstall Colima while the virtual machine runs, because the machine continues to run and Colima cannot stop it. If the removal stops, stop the virtual machine manually. Then run teeup remove colima again.