← 返回命令列表

Linux command

colima 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Start with defaults

colima start

Start with custom resources

colima start --cpu [4] --memory [8] --disk [100]

Start with containerd runtime

colima start --runtime containerd

Start with Kubernetes

colima start --kubernetes

Stop Colima

colima stop

Delete instance

colima delete

List instances

colima list

SSH into VM

colima ssh

说明

colima provides container runtimes on macOS and Linux with minimal setup and resource requirements. It uses Lima (Linux virtual machines) to create an environment for running Docker and containerd, offering a completely free and open-source alternative to Docker Desktop. On macOS, Colima leverages either QEMU or the native Apple Virtualization framework (VZ) for better performance on Apple Silicon. On Linux, it provides a consistent containerization environment. The tool automatically configures Docker client connectivity, port forwarding, and volume mounts, making the VM layer transparent to users. Colima supports multiple runtime profiles, allowing separate instances with different configurations for various projects. Kubernetes clusters can be enabled for local development. The tool integrates seamlessly with existing Docker workflows, requiring no changes to docker commands or compose files. Resource allocation (CPU, memory, disk) is configurable and lightweight compared to alternatives.

FAQ

What is the colima command used for?

colima provides container runtimes on macOS and Linux with minimal setup and resource requirements. It uses Lima (Linux virtual machines) to create an environment for running Docker and containerd, offering a completely free and open-source alternative to Docker Desktop. On macOS, Colima leverages either QEMU or the native Apple Virtualization framework (VZ) for better performance on Apple Silicon. On Linux, it provides a consistent containerization environment. The tool automatically configures Docker client connectivity, port forwarding, and volume mounts, making the VM layer transparent to users. Colima supports multiple runtime profiles, allowing separate instances with different configurations for various projects. Kubernetes clusters can be enabled for local development. The tool integrates seamlessly with existing Docker workflows, requiring no changes to docker commands or compose files. Resource allocation (CPU, memory, disk) is configurable and lightweight compared to alternatives.

How do I run a basic colima example?

Run `colima start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more colima examples?

This page includes 8 examples for colima, plus related commands for nearby Linux tasks.