{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"docker compose: client version 1.53 is too new","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/955 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"955\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  \n<div class=\"document\">\n\n\n<p>Problem:<\/p>\n<pre class=\"literal-block\">\n$ docker compose -f compose.dev.yml ps\nError response from daemon: client version 1.53 is too new. Maximum supported API version is 1.41\n<\/pre>\n<p>Workaround:<\/p>\n<pre class=\"literal-block\">\n$ export DOCKER_API_VERSION=1.41\n<\/pre>\n<p>Reason: Debian 12 with docker's own apt repository (<a class=\"reference external\" href=\"https:\/\/download.docker.com\/linux\/debian\">https:\/\/download.docker.com\/linux\/debian<\/a>). <tt class=\"docutils literal\">docker.io<\/tt> (from Debian) package version is <tt class=\"docutils literal\"><span class=\"pre\">20.10.24+dfsg1-1+deb12u1<\/span><\/tt>, and <tt class=\"docutils literal\"><span class=\"pre\">docker-compose-plugin<\/span><\/tt> (from Docker) got upgraded from <tt class=\"docutils literal\"><span class=\"pre\">5.0.1-1~debian.12~bookworm<\/span><\/tt> to <tt class=\"docutils literal\"><span class=\"pre\">5.0.2-1~debian.12~bookworm<\/span><\/tt> and then <tt class=\"docutils literal\"><span class=\"pre\">5.1.0-1~debian.12~bookworm<\/span><\/tt>.<\/p>\n<p>Downgrading\/pinning to <tt class=\"docutils literal\">5.0.1<\/tt> solved the problem:<\/p>\n<pre class=\"literal-block\">\n# cat \/etc\/apt\/preferences.d\/docker\nPackage: docker-compose-plugin\nPin: version 5.0.1*\nPin-Priority: 1000\n<\/pre>\n<hr class=\"docutils\" \/>\n<p>Same for the buildx plugin, which broke with the update from <tt class=\"docutils literal\"><span class=\"pre\">0.30.1-1~debian.12~bookworm<\/span><\/tt> to <tt class=\"docutils literal\"><span class=\"pre\">0.31.1-1~debian.12~bookworm<\/span><\/tt>:<\/p>\n<pre class=\"literal-block\">\nPackage: docker-buildx-plugin\nPin: version 0.30.1*\nPin-Priority: 1000\n<\/pre>\n<\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/955\/rev-raw\/d3b96a9d1f7d62e0c4a09022c1adc2de6f721250\/README.rst\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/955#README.rst\">README.rst<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
