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
질문됨 3달 전121회 조회
2개 답변
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
답변함 2달 전
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
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠