Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colima: increase docker image size limit

Tags:

docker

colima

I'm running docker through colima and my total images size hit ~10GBs. I need to increase this size in order to continue.

Is there a way to define this somewhere in colima?

like image 337
Deniss M. Avatar asked Sep 07 '25 17:09

Deniss M.


2 Answers

Colima - Customizing the VM

The default VM created by Colima has 2 CPUs, 2GiB memory and 60GiB storage.

The VM can be customized either by passing additional flags to colima start. e.g. --cpu, --memory, --disk, --runtime. Or by editing the config file with colima start --edit.

NOTE: disk size cannot be changed after the VM is created. From v0.5.3, disk size can be increased

Customization Examples

create VM with 1CPU, 2GiB memory and 10GiB storage.

colima start --cpu 1 --memory 2 --disk 10

modify an existing VM to 4CPUs and 8GiB memory.

colima stop
colima start --cpu 4 --memory 8

resize storage to 100 GB.

colima stop
colima start --disk 100

Reference

https://stackoverflow.com/a/74402260/9345651 by @Carlos Cavero

https://github.com/abiosoft/colima#customizing-the-vm

https://github.com/abiosoft/colima/blob/main/docs/FAQ.md

like image 93
ctr-27 Avatar answered Sep 10 '25 19:09

ctr-27


I had the same issue and it is possible to customise Colima VMs CPU, Memory (GB) and Disk (GiB):

colima start --cpu 4 --memory 4 --disk 100

But it is weird because the documentation states:

the default VM created by Colima has 2 CPUs, 2GiB memory and 60GiB storage

like image 45
Carlos Cavero Avatar answered Sep 10 '25 17:09

Carlos Cavero