Running Code Build Agent locally fails with Docker >= v1.27.0

0

I've recently come back to a personal project, where I use Code Build local heavily in my development workflow. When running it, I found that it was failing with the following error:

docker run -it -v ....
ERROR: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
ERROR: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

Thinking it might have something to do with my build image, I went back to the documentation for it and started from scratch, only to end up with the same result. I then downgraded to Docker v1.26.0 and found that the error no longer occurred. I kept updating to the next version until it finally started failing again at v1.27.0.

It appears the ultimate fix for this is to update the local image to use a newer version of compose, something similar to what's mentioned here. Ideally I would be reporting this to the development team directly, but I can't find a way to do so.

For now I'm sticking to the older version of Docker, but I would like to be able to benefit from future features and security-related fixes.

In case it's relevant, I'm running on Mac OS on ARM, though both the ARM and Intel images exhibit the same behavior.

Alex
gefragt vor 3 Monaten121 Aufrufe
2 Antworten
0

I am having the same issue. I believe we need to raise a new issue in the GitHub repo aws-codebuild-docker-images.

https://github.com/aws/aws-codebuild-docker-images

The docker version used in the codebuild agent image is 18.09.0 and the docker compose version is 1.23.2, which is deprecated, and not supported by codebuild docker images repository.

I don't believe this can be fixed, unless the docker version in codebuild agent image is upgraded. I believe it make sense to upgrade it to the same version as the codebuild docker images, which is 23.0.6.

Actually, I won't raise a new issue. There is already an open issue here:

https://github.com/aws/aws-codebuild-docker-images/issues/696

I hope it helps. Good luck, to both of us. :)

SaeedG
beantwortet vor 2 Monaten
0

After your suggestion, I took a closer look and there already is one, with a work around. https://github.com/aws/aws-codebuild-docker-images/issues/696

LOL! You beat me to it!

Alex
beantwortet vor 2 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen