GitLab Docker Autoscaler执行器构建时移除网络失败问题
GitLab Runner Docker Autoscaler 作业执行失败解决方法
问题场景
使用docker-autoscaler执行器运行GitLab Runner,搭配fleeting-plugin-aws插件,已完成Auto Scaling Group(ASG)配置且ASG功能正常,但作业执行失败,报错如下:
Running with gitlab-runner 16.6.1 (f5da3c5a) on autoscaler BN9C-ytN8, system ID: s_bf8d3ace2761 Preparing the "docker-autoscaler" executor 00:10 ERROR: Failed to remove network for build ERROR: Preparation failed: error during connect: Get "http://internel.tunnel.invalid/v1.24/info": dialing environment connection: ssh: rejected: administratively prohibited (open failed) (docker.go:878:0s) Will be retried in 3s ... ERROR: Failed to remove network for build ERROR: Preparation failed: error during connect: Get "http://internel.tunnel.invalid/v1.24/info": dialing environment connection: ssh: rejected: administratively prohibited (open failed) (docker.go:878:0s) Will be retried in 3s ... ERROR: Failed to remove network for build ERROR: Preparation failed: error during connect: Get "http://internel.tunnel.invalid/v1.24/info": dialing environment connection: ssh: rejected: administratively prohibited (open failed) (docker.go:878:0s) Will be retried in 3s ... ERROR: Job failed (system failure): error during connect: Get "http://internel.tunnel.invalid/v1.24/info": dialing environment connection: ssh: rejected: administratively prohibited (open failed) (docker.go:878:0s)
已排查项
- 执行器主机与ASG实例间可通过配置用户建立SSH连接
- 配置用户已具备Docker使用权限
解决方案
将ASG实例中的Docker升级至最新版本,即可解决该连接报错问题。
内容的提问来源于stack exchange,提问作者snifter
相关产品推荐
相关产品推荐

