[현상]
운영 중인 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
'Cloud & DevOps > CICD' 카테고리의 다른 글
[Jenkins] Jenkins agent 파드에 toleration 추가하는 방법 (0) | 2024.08.31 |
---|---|
[Jenkins] JCasC로 프로젝트(job) 이름 규칙 정하기 (0) | 2023.02.18 |
[Jenkins] jnlp agent (0) | 2023.02.18 |
[Gitlab] Private registry에 등록된 Docker image 사용 방법 (0) | 2023.01.03 |
Jenkins로 Terraform 자원 배포하기 (0) | 2022.05.08 |