Skip to content

Commit 5924012

Browse files
committed
Upgdate MacOS colima guide
1 parent 95371bf commit 5924012

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

docs/index.html

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,25 @@ <h3 id="guide-macos-quick-guide"><a href="#guide-macos-table-of-contents"><i cla
504504
</dd>
505505
<dt>Start colima VM</a></dt>
506506
<dd>
507-
<code>colima start</code>
507+
<code>colima start --vm-type=vz --vz-rosetta</code>
508+
<br />
509+
<span>The command above will use the native MacOS virtualization framework, allowing even x86 container images to run and avoiding volume mounts file-system permissions issues.</span>
510+
<br/>
511+
<span class="important-note">You can also use custom distributions images for the docker host os, see here <a target="_blank" rel="noopener noreferrer" href="https://github.com/abiosoft/colima-core/releases">https://github.com/abiosoft/colima-core/releases</a>, in that case, after downloading the image of choice:</span>
512+
<code>colima start --vm-type=vz --vz-rosetta --disk-image ~/Downloads/ubuntu-24.04-minimal-cloudimg-arm64-docker.qcow2</code>
508513
</dd>
509-
<dt>Install <a href="https://formulae.brew.sh/formula/docker" target="_blank" rel="noopener noreferrer">docker</a> command line tools</dt>
514+
<dt>Install <a href="https://formulae.brew.sh/formula/docker" target="_blank" rel="noopener noreferrer">docker</a> command line tools and plugins.</dt>
510515
<dd>
511-
<code>brew install docker</code> - <span>this does not install Docker Desktop</span>
516+
<code>brew install docker docker-compose docker-buildx</code> - <span>this does not install Docker Desktop, only the command line tools that will use the colima docker engine.</span>
517+
<br/>
518+
<span>For docker cli to find the plugins, add the following to your <code>~/.docker/config.json</code>:</span>
519+
<pre>
520+
"cliPluginsExtraDirs": [
521+
"$HOMEBREW_PREFIX/lib/docker/cli-plugins"
522+
]</pre>
523+
<span>After all of the above you should have a completely compatible docker engine running on your mac.</span>
512524
</dd>
513-
<dt>Download and install Container Desktop for MacOS, then due to missing digital signature, allow it to run using</dt>
525+
<dt>Not required, but you can also download and install Container Desktop for MacOS, then due to missing digital signature, allow it to run using</dt>
514526
<dd>
515527
<code>xattr -d com.apple.quarantine /Applications/Container\ Desktop.app</code>
516528
</dd>
@@ -562,25 +574,18 @@ <h3 id="guide-macos-podman-as-docker"><a href="#guide-macos-table-of-contents"><
562574
</dl>
563575
<h3 id="guide-macos-docker-desktop-alternative"><a href="#guide-macos-table-of-contents"><i class="fa fa-angles-up"></i></a> 4. Docker Desktop alternative</h3>
564576
<dl>
565-
<dt>Using <strong>colima</strong>, prepare a Linux VM with backed-in docker support</dt>
577+
<dt>Using <strong>colima</strong> offers the easiest experience</dt>
566578
<dd>
567-
Open a terminal and run the following
568-
<br />
569-
<code>brew install colima</code>
570-
<br />
571-
Start the colima VM
572-
<br />
573-
<code>colima start</code>
579+
Just follow the <a href="#guide-macos-quick-guide">Quick guide</a> to support docker in full compatibility.
574580
</dd>
575-
<dt>Adding support for native <strong>docker</strong> binary</dt>
581+
<dt><strong>(*)</strong> Optional guide for adding support for native <strong>docker</strong> CLI and plugins binaries without homebrew, not recommended due to complexity in setup</dt>
576582
<dd>
577-
<code>brew install docker</code> - <span>this does not install Docker Desktop</span>
578-
<br />
579-
Latest <strong>docker</strong> CLI binaries can also be found at
583+
Latest <strong>docker</strong> CLI and plugins binaries can also be found at
580584
<ul>
581585
<li><strong>Apple CPUs</strong> - <a href="https://download.docker.com/mac/static/stable/aarch64/" target="_blank" rel="noopener noreferrer">https://download.docker.com/mac/static/stable/aarch64/</a></li>
582586
<li>Intel CPUs - <a href="https://download.docker.com/mac/static/stable/x86_64/" target="_blank" rel="noopener noreferrer">https://download.docker.com/mac/static/stable/x86_64/</a></li>
583587
</ul>
588+
<br/>
584589
</dd>
585590
</dl>
586591
<h3 id="guide-macos-sharing-connection"><a href="#guide-macos-table-of-contents"><i class="fa fa-angles-up"></i></a> 5. Sharing connection with Container Desktop</h3>

0 commit comments

Comments
 (0)