ERROR: Job failed (system failure): Error response from daemon: OCI runtime create failed: container

ERROR: Job failed (system failure): Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/usr/lib64/libltdl.so.7\\\" to rootfs \\\"/var/lib/docker/overlay2/f042a70f0e858ffebec5052978942ae1e43713bf56caace359c8c7a121df00af/merged\\\" at \\\"/var/lib/docker/overlay2/f042a70f0e858ffebec5052978942ae1e43713bf56caace359c8c7a121df00af/merged/usr/lib/x86_64-linux-gnu/libltdl.so.7.3.1\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type (docker.go:792:0s)

使用的runner的配置文件的卷配置有问题

找到对应的runner  应该这样配置

vim /srv/gitlab-runner/config/config.toml 
 
privileged = true
...
volumes = ["/usr/lib64/libltdl.so.7:/usr/lib/x86_64-linux-gnu/libltdl.so.7:rw", "/usr/bin/docker:/usr/bin/docker", "/var/run/docker.sock:/var/run/docker.sock"]

  gitlab-runner 的配置文件的

猜你喜欢

转载自blog.csdn.net/github_35631540/article/details/107817059