Skip to content

Instantly share code, notes, and snippets.

@jcartledge
Last active August 25, 2022 04:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcartledge/0ce114e9719a62a4776569e80088511d to your computer and use it in GitHub Desktop.
Save jcartledge/0ce114e9719a62a4776569e80088511d to your computer and use it in GitHub Desktop.
switching batect from docker desktop to colima

switching batect from docker desktop to colima

assumptions:

  • you already have a working docker client (brew install docker)
  • you have uninstalled docker desktop (e.g. brew uninstall —force —cask docker)

instructions

  1. install colima and docker-credential-helper:

brew install colima docker-credential-helper

  1. start colima

colima start

  1. export the path to the colima socket so batect can use it:

export DOCKER_HOST="unix:///${HOME}/.colima/docker.sock"

  1. ensure docker is configured to use the correct credential helper - edit ~/.docker/config.json and ensure it includes the following:

"credsStore": "osxkeychain",

In my case this was set to “desktop” which fails because I don’t have an executable docker-credential-desktop. With the setting above docker will use docker-credential-osxkeychain which is provided by the docker-credential-helper homebrew package.

That’s it, you should now be able to run batect without errors.

@charleskorn
Copy link

Setting DOCKER_HOST should no longer be required to use Batect with Colima starting with v0.80.0. Please give the new version a go and let me know if you run into any issues.

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