Colima - container runtimes on MacOS
Colima
的名字取自Container on Lima
,Lima
是一个虚拟机工具,可以实现自动的文件共享、端口转发以及containerd
。Colima
实际上是通过Lima
启动了名为colima
的虚拟机,使用虚拟机中的containerd
作为容器运行时。
Installation
brew install colima
Usage
colima delete # delete existing instance
colima start
docker ps
docker pull busybox
docker images
limactl list
limactl shell colima uname -a
colima ssh
colima --help
colima start --help
Runtimes
On initial startup, Colima initiates with a user specified runtime that defaults to Docker.
### Docker
brew install docker
### Containerd
colima start --runtime containerd
colima nerdctl ps
colima nerdctl container run nginx
### Kubernetes
colima start --kubernetes
Customizing the VM
colima start --cpu 4 --memory 16