<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Passing Curiosity: Posts tagged containers</title>
    <link href="https://passingcuriosity.com/tags/containers/containers.xml" rel="self" />
    <link href="https://passingcuriosity.com" />
    <id>https://passingcuriosity.com/tags/containers/containers.xml</id>
    <author>
        <name>Thomas Sutton</name>
        
        <email>me@thomas-sutton.id.au</email>
        
    </author>
    <updated>2023-10-20T00:00:00Z</updated>
    <entry>
    <title>Use Colima to build and run containers on macOS</title>
    <link href="https://passingcuriosity.com/2023/colima-docker-on-mac/" />
    <id>https://passingcuriosity.com/2023/colima-docker-on-mac/</id>
    <published>2023-10-20T00:00:00Z</published>
    <updated>2023-10-20T00:00:00Z</updated>
    <summary type="html"><![CDATA[<p>If you use Homebrew to install third-party packages on macOS, it’s
pretty straightforward to install and configure <a href="https://github.com/abiosoft/colima">Colima</a> along
with the various Docker and Kubernetes command-line tools.</p>
<p>First, make sure your Homebrew formulas are all up to date:</p>
<pre><code>brew update</code></pre>
<p>Install Colima along with the Docker and Kubernetes command-line tools:</p>
<pre><code>brew install colima docker kubectl</code></pre>
<p>If you work on a network controlled by an organisation that uses TLS stripping
security appliances you’ll probably need to install additional CA root
certificates before you can pull container images from the Internet, etc. You
can put them in the usual place in your home directory and Colima will
automatically install them in the VMs it starts:</p>
<pre><code>mkdir -p ~/.docker/certs.d
cd ~/.docker/certs.d
curl -o proxy-cert.crt https://insecurity.my.corp/proxy-cert.crt</code></pre>
<p>(Do make sure you put each certificate in a separate file; if they are
concatenated you’ll need to split them.)</p>
<p>With Colima installed, you should be able to start a Colima instance. There are
a handful of options to control the CPU, disk, and memory allocation for the VM,
the runtimes to configure on it, etc.</p>
<pre><code>colima start --memory 8 --kubernetes</code></pre>
<p>Check that the Docker and Kubernetes command-line tools have been configured to
talk to the new Colima instance:</p>
<pre><code>kubectl get pods -A
docker ps</code></pre>
<p>If you installed custom certs, you’d better check that it’s all working
correctly by pulling an image:</p>
<pre><code>docker pull python:3.12-slim</code></pre>
<p>Easy.</p>]]></summary>
</entry>

</feed>
