CI: Fix container build jobs
PATCH 1/1 CI: Fix container build jobs
From: Anthony PERARD <[email protected]>
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.)
---
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(-)
automation/gitlab-ci/containers.yaml +1 -1
@@ -1,6 +1,6 @@ .container-build-tmpl: stage: containers - image: docker:stable + image: docker:cli tags: - container-builder rules:
Signature · 1 line
Anthony PERARD
Quoted 10 lines · Anthony PERARD
From: Anthony PERARD <[email protected]>
docker:stabletag hasn't been updated in 5 years, and has been deprecated, according to https://hub.docker.com/_/docker, whiledocker:dind(image use for the service) is using a recent version of docker.Now,
docker infofails with:
Error response from daemon: client version 1.40 is too old. ...
Quoted 6 lines
Switch to a newer tag, and just the "cli" version which contains only the docker client. With that, both
:dindand:clishould keep using the same version of version. (:cliseems to be the base image used to build:dind.)Signed-off-by Anthony PERARD <[email protected]>