Skip to content

Commit

Permalink
Guide users to configure Docker daemon with Colima
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Michael Saki committed Feb 28, 2024
1 parent a1389c7 commit b8034d4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dev_envs/mac-env-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,20 @@ To customize the VM's resources, such as CPUs, memory, and disk space:
colima start --cpu 4 --memory 4 --disk 100
```

### Configure Colima's Docker daemon ###

In your .zshrc profile add the following configuration.

```console
# Set env variable for Colima compatibility with Docker
export DOCKER_HOST=unix://$HOME/.colima/default/docker.sock
```

> **Note**
> This configuration directs Docker client tools to communicate with the
> Docker daemon managed by Colima, ensuring that Docker commands and
> applications (e.g. Molecule) function as expected without Docker Desktop.
### Environment configuration ###

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

0 comments on commit b8034d4

Please sign in to comment.