<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>docker compose: client version 1.53 is too new</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/955 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="955"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;Problem:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ docker compose -f compose.dev.yml ps
Error response from daemon: client version 1.53 is too new. Maximum supported API version is 1.41
&lt;/pre&gt;
&lt;p&gt;Workaround:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ export DOCKER_API_VERSION=1.41
&lt;/pre&gt;
&lt;p&gt;Reason: Debian 12 with docker's own apt repository (&lt;a class="reference external" href="https://download.docker.com/linux/debian"&gt;https://download.docker.com/linux/debian&lt;/a&gt;). &lt;tt class="docutils literal"&gt;docker.io&lt;/tt&gt; (from Debian) package version is &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;20.10.24+dfsg1-1+deb12u1&lt;/span&gt;&lt;/tt&gt;, and &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;docker-compose-plugin&lt;/span&gt;&lt;/tt&gt; (from Docker) got upgraded from &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;5.0.1-1~debian.12~bookworm&lt;/span&gt;&lt;/tt&gt; to &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;5.0.2-1~debian.12~bookworm&lt;/span&gt;&lt;/tt&gt; and then &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;5.1.0-1~debian.12~bookworm&lt;/span&gt;&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Downgrading/pinning to &lt;tt class="docutils literal"&gt;5.0.1&lt;/tt&gt; solved the problem:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
# cat /etc/apt/preferences.d/docker
Package: docker-compose-plugin
Pin: version 5.0.1*
Pin-Priority: 1000
&lt;/pre&gt;
&lt;hr class="docutils" /&gt;
&lt;p&gt;Same for the buildx plugin, which broke with the update from &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;0.30.1-1~debian.12~bookworm&lt;/span&gt;&lt;/tt&gt; to &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;0.31.1-1~debian.12~bookworm&lt;/span&gt;&lt;/tt&gt;:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
Package: docker-buildx-plugin
Pin: version 0.30.1*
Pin-Priority: 1000
&lt;/pre&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/955/rev-raw/d3b96a9d1f7d62e0c4a09022c1adc2de6f721250/README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/955#README.rst"&gt;README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
