Skip to content

Instantly share code, notes, and snippets.

@thecloudranger
Last active June 12, 2024 16:30
Show Gist options
  • Select an option

  • Save thecloudranger/cbcda429d26064b6a390f47297ad1506 to your computer and use it in GitHub Desktop.

Select an option

Save thecloudranger/cbcda429d26064b6a390f47297ad1506 to your computer and use it in GitHub Desktop.
Setting up colima in macbook

Overview

Captuing below steps to get colima to work with docker runtime nicely, including setup for volume to mount for databases.

  • Install colima

    brew install colima

  • Create an override YAML file

    vim /Users/<username>/.colima/_lima/_config/override.yaml

  • Replace content with below

mountType: 9p
mounts:
  - location: "/Users/<username>"
    writable: true
    9p:
      securityModel: mapped-xattr
      cache: mmap
  - location: "~"
    writable: true
    9p:
      securityModel: mapped-xattr
      cache: mmap
  - location: /tmp/colima
    writable: true
    9p:
      securityModel: mapped-xattr
      cache: mmap
  • Clear up settings if colima was running before

    colima delete

  • Start colima with the mount

    colima start --mount-type 9p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment