Skip to content

Commit b8034d4

Browse files
author
Michael Saki
committed
Guide users to configure Docker daemon with Colima
Adds documentation for linking Colima with the Docker daemon. This ensures Docker client tools communicate with Colima's managed Docker daemon, essential for Docker-based applications like Molecule without Docker Desktop. Includes the setup code snippet and its importance for better user understanding and usability in development workflows.
1 parent a1389c7 commit b8034d4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dev_envs/mac-env-setup.md

+14
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,20 @@ To customize the VM's resources, such as CPUs, memory, and disk space:
216216
colima start --cpu 4 --memory 4 --disk 100
217217
```
218218

219+
### Configure Colima's Docker daemon ###
220+
221+
In your .zshrc profile add the following configuration.
222+
223+
```console
224+
# Set env variable for Colima compatibility with Docker
225+
export DOCKER_HOST=unix://$HOME/.colima/default/docker.sock
226+
```
227+
228+
> **Note**
229+
> This configuration directs Docker client tools to communicate with the
230+
> Docker daemon managed by Colima, ensuring that Docker commands and
231+
> applications (e.g. Molecule) function as expected without Docker Desktop.
232+
219233
### Environment configuration ###
220234

221235
For portability between computers and environments, you may want to switch

0 commit comments

Comments
 (0)