이것저것

[gitlab-runner] ERROR: error during connect: Get "http://docker:2375/v1.24/info": dial tcp: lookup docker on 192.168.1.1:53: no such host

개발자리 2024. 2. 13. 14:41
반응형

Server:
ERROR: error during connect: Get "http://docker:2375/v1.24/info": dial tcp: lookup docker on 192.168.1.1:53: no such host
errors pretty printing info
Cleaning up project directory and file based variables

 

대충 이런 에러가 나는데

 

/etc/gitlab-runner/config.toml를 

[[runners]]
  id = 0
  token = "glrt-iwxLr-7Nszw7kLHTJPcn"
  token_obtained_at = 0001-01-01T00:00:00Z
  token_expires_at = 0001-01-01T00:00:00Z
  executor = "docker"
  [runners.custom_build_dir]
  [runners.cache]
    MaxUploadedArchiveSize = 0
    [runners.cache.s3]
    [runners.cache.gcs]
    [runners.cache.azure]
  [runners.docker]
    tls_verify = false
    image = "alpine:latest"
    privileged = true
    disable_entrypoint_overwrite = false
    oom_kill_disable = false
    disable_cache = false
    volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
    shm_size = 0

 

volumes와 privileged를 수정하면 된다.

Docker에 dind에 관련한 이슈인데 자세한 개념은 딥해지니까 패스..

반응형