<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Install guide on Varnish Cache</title><link>https://www.varnish.org/docs/install-guide/</link><description>Recent content in Install guide on Varnish Cache</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 12 Dec 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://www.varnish.org/docs/install-guide/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker install guide</title><link>https://www.varnish.org/docs/install-guide/install-docker/</link><pubDate>Fri, 12 Dec 2025 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/install-guide/install-docker/</guid><description>&lt;p&gt;This install guide explains how to deploy Varnish Cache using &lt;a href="https://hub.docker.com/_/varnish"&gt;the official Docker container&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="pull-the-varnish-docker-image"&gt;Pull the Varnish docker image&lt;/h2&gt;
&lt;p&gt;First pull the Docker image from the Docker hub to ensure you have the latest version:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;docker pull varnish
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command will implicitly use the &lt;code&gt;latest&lt;/code&gt; tag to get the right version of the container. You can pin a specific version by adding &lt;a href="https://hub.docker.com/_/varnish/tags"&gt;one of the available tags&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s an example where we explicitly pull version &lt;code&gt;8.0&lt;/code&gt; of Varnish Cache:&lt;/p&gt;</description></item><item><title>Kubernetes install guide</title><link>https://www.varnish.org/docs/install-guide/install-kubernetes/</link><pubDate>Fri, 12 Dec 2025 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/install-guide/install-kubernetes/</guid><description>&lt;p&gt;This install guide explains how to deploy Varnish Cache on Kubernetes using &lt;a href="https://hub.docker.com/r/varnish/varnish-cache"&gt;the official Helm chart&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="install-the-helm-chart"&gt;Install the Helm chart&lt;/h2&gt;
&lt;p&gt;You can install the Heml chart on your Kubernetes cluster by running the following &lt;code&gt;helm install&lt;/code&gt; command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;helm install varnish oci://docker.io/varnish/varnish-cache
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This command will deploy Varnish on the Kubernetes cluster that was configured in the active context of your &lt;code&gt;kubectl&lt;/code&gt; client. Run &lt;code&gt;kubectl config current-context&lt;/code&gt; to see what that context is.&lt;/p&gt;</description></item><item><title>Debian and Ubuntu install guide</title><link>https://www.varnish.org/docs/install-guide/install-debian-ubuntu/</link><pubDate>Fri, 12 Dec 2025 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/install-guide/install-debian-ubuntu/</guid><description>&lt;p&gt;This install guide explains how to install Varnish Cache on DEB-based Linux distributions like Debian and Ubuntu.&lt;/p&gt;
&lt;h2 id="register-the-package-repository"&gt;Register the package repository&lt;/h2&gt;
&lt;p&gt;Before we can install Varnish, we need to register the right package repository, otherwise Debian will install its own version of Varnish.&lt;/p&gt;
&lt;p&gt;First update your packages:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt-get install -y apt-transport-https curl gpg
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Import Varnish Repo Signing keys&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo mkdir -p /etc/apt/keyrings/
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;curl -Ls https://packages.varnish-software.com/varnish/varnish.pub.asc &lt;span style="color:#1f2328"&gt;|&lt;/span&gt; gpg --dearmor &lt;span style="color:#1f2328"&gt;|&lt;/span&gt; sudo tee /etc/apt/keyrings/varnish.gpg &amp;gt; /dev/null
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the correct source list based on &lt;code&gt;/etc/os-release&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Red Hat Enterprise Linux and compatible distributions install guide</title><link>https://www.varnish.org/docs/install-guide/install-rhel-compatible/</link><pubDate>Fri, 12 Dec 2025 00:00:00 +0000</pubDate><guid>https://www.varnish.org/docs/install-guide/install-rhel-compatible/</guid><description>&lt;p&gt;This install guide explains how to install Varnish Cache on Red Hat Enterprise Linux, and rhel-compatible distributions like Alma Linux, and Rocky Linux.&lt;/p&gt;
&lt;h2 id="register-the-package-repository"&gt;Register the package repository&lt;/h2&gt;
&lt;p&gt;Create a file &lt;code&gt;/etc/yum-repos.d/varnish.repo&lt;/code&gt; with the following content, if you run AmazonLinux replace &lt;code&gt;el&lt;/code&gt; with &lt;code&gt;amazonlinux&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-ini" data-lang="ini"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#cf222e"&gt;[varnish]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;name&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;varnish&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;baseurl&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;https://packages.varnish-software.com/varnish/el/$releasever/$basearch&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;repo_gpgcheck&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;enabled&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;gpgcheck&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;gpgkey&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;https://packages.varnish-software.com/varnish/varnish.pub.asc&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;sslverify&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#1f2328"&gt;sslcacert&lt;/span&gt;&lt;span style="color:#0550ae"&gt;=&lt;/span&gt;&lt;span style="color:#0a3069"&gt;/etc/pki/tls/certs/ca-bundle.crt&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="install-varnish"&gt;Install Varnish&lt;/h2&gt;
&lt;p&gt;Now that the repository is registered, you can install Varnish by running the following command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo yum install varnish
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="configure-varnish"&gt;Configure Varnish&lt;/h2&gt;
&lt;p&gt;After installing Varnish, you will need to configure some &lt;code&gt;varnishd&lt;/code&gt; runtime parameters, and possibly edit your VCL configuration.&lt;/p&gt;</description></item></channel></rss>