Gitlab CI /var/run/docker.sock:写:断管

时间:2017-02-01 12:17:19

标签: docker gitlab gitlab-ci gitlab-ci-runner

尝试设置跑步者并提出这个问题:

Running with gitlab-ci-multi-runner 1.10.4 (b32125f)
Using Docker executor with image php:5.6 ...
ERROR: Failed to create container volume for /builds/ppw write unix @->/var/run/docker.sock: write: broken pipe
ERROR: Preparation failed: write unix @->/var/run/docker.sock: write: broken pipe
Will be retried in 3s ...
Using Docker executor with image php:5.6 ...
ERROR: Failed to create container volume for /builds/ppw write unix @->/var/run/docker.sock: write: broken pipe
ERROR: Preparation failed: write unix @->/var/run/docker.sock: write: broken pipe
Will be retried in 3s ...
Using Docker executor with image php:5.6 ...
ERROR: Failed to create container volume for /builds/ppw write unix @->/var/run/docker.sock: write: broken pipe
ERROR: Preparation failed: write unix @->/var/run/docker.sock: write: broken pipe
Will be retried in 3s ...
ERROR: Build failed (system failure): write unix @->/var/run/docker.sock: write: broken pipe

我已尝试降级gitlab-ci-multi-runner,但我仍有同样的问题 - broken pipe

系统正在运行:Ubuntu 16.04.1 LTS

我的.gitlab-ci.yml

before_script:
# Install dependencies
- bash ci/docker_install.sh > /dev/null
# We test PHP5.6
test:5.6:
  image: php:5.6
  script:
  - phpunit --configuration phpunit_myapp.xml
# We test PHP7.0
test:7.0:
  image: php:7.0
  script:
  - phpunit --configuration phpunit_myapp.xml

我的ci / docker_install.sh

#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && exit 0
set -xe
# Install git (the php image doesn't have it) which is required by composer
apt-get update -yqq
apt-get install git -yqq
# Install phpunit, the tool that we will use for testing
curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
chmod +x /usr/local/bin/phpunit

任何帮助将不胜感激,我已经尝试过阅读:GitlabCI build failed, docker.sock: write: broken pipe

当我docker ps时,我没有列出任何容器。

$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

0 个答案:

没有答案