[XEN PATCH] CI: Fix container build jobs

Anthony PERARD posted 1 patch 3 days, 14 hours ago
automation/gitlab-ci/containers.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[XEN PATCH] CI: Fix container build jobs
Posted by Anthony PERARD 3 days, 14 hours ago
From: Anthony PERARD <anthony.perard@vates.tech>

`docker:stable` tag hasn't been updated in 5 years, and has been
deprecated, according to https://hub.docker.com/_/docker, while
`docker:dind` (image use for the service) is using a recent version of
docker.

Now, `docker info` fails with:
    Error response from daemon: client version 1.40 is too old. ...

Switch to a newer tag, and just the "cli" version which contains only
the docker client. With that, both `:dind` and `:cli` should keep
using the same version of version. (`:cli` seems to be the base image
used to build `:dind`.)

Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>
---

Notes:
    pipeline:
        https://gitlab.com/xen-project/people/anthonyper/xen/-/pipelines/2200667790
    which actually pushed the updated containers, despite the name of the
    top commit.

 automation/gitlab-ci/containers.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/automation/gitlab-ci/containers.yaml b/automation/gitlab-ci/containers.yaml
index 25e8bdc34b..8b702a1d82 100644
--- a/automation/gitlab-ci/containers.yaml
+++ b/automation/gitlab-ci/containers.yaml
@@ -1,6 +1,6 @@
 .container-build-tmpl:
   stage: containers
-  image: docker:stable
+  image: docker:cli
   tags:
     - container-builder
   rules:
-- 
Anthony PERARD
Re: [XEN PATCH] CI: Fix container build jobs
Posted by Andrew Cooper 3 days, 13 hours ago
On 07/12/2025 2:52 pm, Anthony PERARD wrote:
> From: Anthony PERARD <anthony.perard@vates.tech>
>
> `docker:stable` tag hasn't been updated in 5 years, and has been
> deprecated, according to https://hub.docker.com/_/docker, while
> `docker:dind` (image use for the service) is using a recent version of
> docker.
>
> Now, `docker info` fails with:
>     Error response from daemon: client version 1.40 is too old. ...
>
> Switch to a newer tag, and just the "cli" version which contains only
> the docker client. With that, both `:dind` and `:cli` should keep
> using the same version of version. (`:cli` seems to be the base image
> used to build `:dind`.)
>
> Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>