Skip to content

mochi config set container-command ​

Set the command and global flags a container runtime runs with on this machine.

Synopsis ​

Run COMMAND in place of docker or podman for container executables, with any flags after -- placed before every subcommand. COMMAND must accept that runtime's run and rm flags, such as a Docker-compatible CLI for docker. Set a runtime's own name with no flags to go back to the default.

shell
mochi config set container-command [docker|podman] COMMAND [-- FLAG...] [flags]

Examples ​

shell
mochi config set container-command docker docker -- --context colima
mochi config set container-command podman podman -- --connection build-vm
mochi config set container-command docker /opt/homebrew/bin/docker
mochi config set container-command docker docker   # back to the default

Options ​

FlagTypeDescription
-h, --helphelp for container-command

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync the executable cache first, pulling git-sourced workspaces from their remotes

See also ​