I am using GitLab.com and a docker runner in there (ubuntu-2gb-hel1-1). Searching answers from Google offers a lot of solutions but none of them have helped me so far. The error started to happen suddenly and affects all 5 repos in this particular project.
I have tried a couple of things already. I ran docker system prune -f
and docker info
but everything seems to be fine and there should be enough free space during the running of docker build
command. I also emptied all container registries of the project. Repos are all far less than 0,5gb.
The error I keep getting when running my pipeline:
write /var/lib/docker/tmp/GetImageBlob040699619: no space left on device
ERROR: Job failed: exit code 1
.gitlab-ci.yml
(The error occurs during the release stage and at the end of the docker build
command).
variables:
NODE_VERSION: 10
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ''
CONTAINER_IMAGE: ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_SHA}
CONTAINER_IMAGE_LATEST: ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
AWS_CONTAINER_IMAGE: ${AWS_ECR}/${CI_PROJECT_PATH}:${CI_COMMIT_SHA}
AWS_CONTAINER_IMAGE_LATEST: ${AWS_ECR}/${CI_PROJECT_PATH}:${CI_COMMIT_REF_NAME}
cache:
untracked: true
key: "$CI_BUILD_REF_NAME"
paths:
- node_modules/
stages:
- release
release:
stage: release
image: docker:latest
services:
- docker:dind
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
script:
- docker build -t ${CONTAINER_IMAGE} .
- docker tag ${CONTAINER_IMAGE} ${CONTAINER_IMAGE_LATEST}
- docker push ${CONTAINER_IMAGE}
- docker push ${CONTAINER_IMAGE_LATEST}
only:
- master
tags:
- docker
Dockerfile
FROM node:10
ADD . /code
WORKDIR /code
RUN yarn
EXPOSE 3030
CMD ["yarn","start"]
Thank you all for your help!