- you already have a working docker client (
brew install docker
) - you have uninstalled docker desktop (e.g.
brew uninstall —force —cask docker
)
- install colima and docker-credential-helper:
brew install colima docker-credential-helper
- start colima
colima start
- export the path to the colima socket so batect can use it:
export DOCKER_HOST="unix:///${HOME}/.colima/docker.sock"
- 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.
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.