How to change the docker mirror in colima

Introduction to Colima can be found at 不使用 docker-desktop 怎么启用 docker 和 docker buildx

Locate the Colima configuration directory

Usually in the User Folder/.colima/default directory, which contains a file named colima.yaml. This is the configuration file for Colima.

Edit the colima.yaml file

Open colima.yaml and add or modify the following content:

docker:
  registry-mirrors:
    - https://docker.m.daocloud.io

Restart Colima

colima restart