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 defaultOptions
| Flag | Type | Description |
|---|---|---|
-h, --help | help for container-command |
Options inherited from parent commands
| Flag | Type | Description |
|---|---|---|
-L, --log-level | string | Log verbosity level (debug, info, fatal) (default "info") |
--sync | Sync the executable cache first, pulling git-sourced workspaces from their remotes |
See also
- mochi config set — Set a global configuration value.