skip to Main Content

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?

2

Answers


  1. 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

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search