Cloud & DevOps/CICD

Docker Machine deprecated에 따른 gitlab 오류 현상

백곰곰 2022. 7. 11. 21:21
728x90
반응형

[현상]

운영 중인 Gitlab 서버의 runner 세팅 과정에서 docker image 다운로드 시 에러가 발생했습니다.

 

[해결방안]

해당 Gitlab runner에서는 Docker Machine을 사용하고 있었고, Docker에서 Docker Machine을 deprecate함에 따라 url 변경이 필요한 것으로 확인됐습니다.

 

아래와 같이 config.toml 파일에 아래 config를 추가하고 gitlab runner 컨테이너를 재기동 하는 것으로 해결했습니다.

bash
[runners.machine] ... MachineOptions = [ "engine-install-url=https://releases.rancher.com/install-docker/19.03.9.sh", ... ]

추후 Gitlab runner의 버전을 업그레이드하여 url을 명시적으로 쓸 필요가 있는지 확인이 필요합니다.

 

 

참고)

https://gitlab.com/gitlab-org/ci-cd/docker-machine/-/issues/41

 

Latest docker release (20.10.0) doesn't work with docker-machine (#41) · Issues · GitLab.org / Ops Sub-Department / docker-mac

Hi guys, we have the similar problem as mentioned here: https://github.com/docker/machine/issues/4858 The solution with:

gitlab.com

 

https://gitlab.com/gitlab-org/gitlab/-/issues/341856

 

Strategy in response to deprecation of Docker Machine by Docker (#341856) · Issues · GitLab.org / GitLab · GitLab

Status Update / plan summary - 2022-04-11 We will continue to maintain our Docker Machine fork until we have...

gitlab.com

728x90