v0.6.0 fails to find DinD with same commit as worked in v0.4.0
Workaround
This is a known issue, see gitlab-org/gitlab#328403 (closed) for background and workarounds.
The fix is expected to be included in GitLab 13.11.3.
Problem
auto-build-image:v0.6.0 vs auto-build-image:v0.4.0
Using Auto DevOps, with no code changes, but using the newer build image, I am unable to build the sample node project included as a template in gitlab.
Cannot connect to the Docker daemon at tcp://127.0.0.1:2376. Is the docker daemon running?
[0KRunning with gitlab-runner 13.10.0 (54944146)
[0;m[0K on runner-gitlab-runner-85c89898cb-2x7xt 94kyU5ev
[0;msection_start:1619620948:prepare_executor
[0K[0K[36;1mPreparing the "kubernetes" executor[0;m
[0;m[0KUsing Kubernetes namespace: gitlab-managed-apps
[0;m[0KUsing Kubernetes executor with image registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image:v0.6.0 ...
[0;msection_end:1619620948:prepare_executor
[0Ksection_start:1619620948:prepare_script
[0K[0K[36;1mPreparing environment[0;m
[0;m[0;33mWARNING: Pulling GitLab Runner helper image from Docker Hub. Helper image is migrating to registry.gitlab.com, for more information see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#migrating-helper-image-to-registrygitlabcom
[0;mWaiting for pod gitlab-managed-apps/runner-94kyu5ev-project-8536-concurrent-068552 to be running, status is Pending
Running on runner-94kyu5ev-project-8536-concurrent-068552 via runner-gitlab-runner-85c89898cb-2x7xt...
section_end:1619620952:prepare_script
[0Ksection_start:1619620952:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m
[0;m[32;1mFetching changes with git depth set to 50...[0;m
Initialized empty Git repository in /builds/<redacted>/.git/
[32;1mCreated fresh repository.[0;m
[32;1mChecking out 984fb055 as master...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1619620952:get_sources
[0Ksection_start:1619620952:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m
[0;m[32;1m$ if [[ -z "$CI_COMMIT_TAG" ]]; then # collapsed multi-line command[0;m
[32;1m$ /build/build.sh[0;m
Logging in to GitLab Container Registry with CI credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Building Dockerfile-based application...
Attempting to pull a previously built image for use with --cache-from...
Cannot connect to the Docker daemon at tcp://127.0.0.1:2376. Is the docker daemon running?
No previously cached image found. The docker build will proceed without using a cached image
Cannot connect to the Docker daemon at tcp://127.0.0.1:2376. Is the docker daemon running?
Cannot connect to the Docker daemon at tcp://127.0.0.1:2376. Is the docker daemon running?
section_end:1619620953:step_script
[0Ksection_start:1619620953:cleanup_file_variables
[0K[0K[36;1mCleaning up file based variables[0;m
[0;msection_end:1619620953:cleanup_file_variables
[0K[31;1mERROR: Job failed: command terminated with exit code 1
[0;m
[0KRunning with gitlab-runner 13.10.0 (54944146)
[0;m[0K on runner-gitlab-runner-6c58bc8b4-pnz6m fVhD9ACK
[0;msection_start:1619616330:prepare_executor
[0K[0K[36;1mPreparing the "kubernetes" executor[0;m
[0;m[0KUsing Kubernetes namespace: gitlab-managed-apps
[0;m[0KUsing Kubernetes executor with image registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image:v0.4.0 ...
[0;msection_end:1619616330:prepare_executor
[0Ksection_start:1619616330:prepare_script
[0K[0K[36;1mPreparing environment[0;m
[0;m[0;33mWARNING: Pulling GitLab Runner helper image from Docker Hub. Helper image is migrating to registry.gitlab.com, for more information see https://docs.gitlab.com/runner/configuration/advanced-configuration.html#migrating-helper-image-to-registrygitlabcom
[0;mWaiting for pod gitlab-managed-apps/runner-fvhd9ack-project-8536-concurrent-056bs5 to be running, status is Pending
Waiting for pod gitlab-managed-apps/runner-fvhd9ack-project-8536-concurrent-056bs5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper svc-0]"
ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab-managed-apps/runner-fvhd9ack-project-8536-concurrent-056bs5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper svc-0]"
ContainersNotReady: "containers with unready status: [build helper svc-0]"
Waiting for pod gitlab-managed-apps/runner-fvhd9ack-project-8536-concurrent-056bs5 to be running, status is Pending
ContainersNotReady: "containers with unready status: [build helper svc-0]"
ContainersNotReady: "containers with unready status: [build helper svc-0]"
Running on runner-fvhd9ack-project-8536-concurrent-056bs5 via runner-gitlab-runner-6c58bc8b4-pnz6m...
section_end:1619616342:prepare_script
[0Ksection_start:1619616342:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m
[0;m[32;1mFetching changes with git depth set to 50...[0;m
Initialized empty Git repository in /builds/<redacted>/.git/
[32;1mCreated fresh repository.[0;m
[32;1mChecking out 984fb055 as master...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1619616342:get_sources
[0Ksection_start:1619616342:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m
[0;m[32;1m$ if [[ -z "$CI_COMMIT_TAG" ]]; then # collapsed multi-line command[0;m
[32;1m$ /build/build.sh[0;m
Logging to GitLab Container Registry with CI credentials...
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Building Dockerfile-based application...
Attempting to pull a previously built image for use with --cache-from...
<gitlab.<redacted>.<redacted>:4567/<redacted>/master:eaa483371ab479f4ec8a730700c0664a7fa91aa2
Sending build context to Docker daemon 231.9kB
Step 1/10 : FROM node:8.11-alpine
8.11-alpine: Pulling from library/node
a073c86ecf9e: Already exists
db7179d8c6cd: Already exists
66b9cfaecc8c: Already exists
Digest: sha256:1c38d992f89ae389450bc69799a0f2b7d1f9f2e6c445080a4648448e6449e8e4
Status: Downloaded newer image for node:8.11-alpine
---> 8adf3c3eb26c
Step 2/10 : WORKDIR /usr/src/app
---> Using cache
---> c804af065d04
Step 3/10 : ARG NODE_ENV
---> Using cache
---> 3c0554638c65
Step 4/10 : ENV NODE_ENV $NODE_ENV
---> Using cache
---> 2649adadfd53
Step 5/10 : COPY package*.json /usr/src/app/
---> 88f8ba019739
Step 6/10 : RUN npm install
---> Running in 07f350762e5f
[91mnpm[0m[91m WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
[0m[91mnpm WARN [0m[91mnotice [SECURITY] morgan has the following vulnerability: 1 moderate. Go here for more details: https://www.npmjs.com/advisories?search=morgan&version=1.9.0 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[0m[91mnpm WARN notice[0m[91m [SECURITY] pug-code-gen has the following vulnerability: 1 high. Go here for more details: https://www.npmjs.com/advisories?search=pug-code-gen&version=1.1.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[0m[91mnpm WARN notice [SECURITY] clean-css has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=clean-css&version=3.4.28 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[0m[91mnpm WARN notice [SECURITY] minimist has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=minimist&version=0.0.8 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[0m[91mnpm WARN notice [SECURITY] lodash has the following vulnerabilities: 3 high, 1 low. Go here for more details: https://www.npmjs.com/advisories?search=lodash&version=4.17.10 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[0madded 159 packages in 3.481s
Removing intermediate container 07f350762e5f
---> bb51e30fb248
Step 7/10 : COPY . /usr/src/app
---> 157560d9922b
Step 8/10 : ENV PORT 5000
---> Running in da635d6f5bf6
Removing intermediate container da635d6f5bf6
---> 5df9925f5a2e
Step 9/10 : EXPOSE $PORT
---> Running in 39db944173ef
Removing intermediate container 39db944173ef
---> fc3460fe8b75
Step 10/10 : CMD [ "npm", "start" ]
---> Running in da38ec59440a
Removing intermediate container da38ec59440a
---> dc098d3c312d
[Warning] One or more build-args [BUILDPACK_URL] were not consumed
Successfully built dc098d3c312d
Successfully tagged gitlab.<redacted>.<redacted>:4567/<redacted>/master:984fb055d69a692963d6f9bb271764f18ec1de87
Successfully tagged gitlab.<redacted>.<redacted>:<redacted>/<redacted>/master:latest
The push refers to repository [gitlab.<redacted>.<redacted>:4567/<redacted>/master]
1ee94547b4c6: Preparing
03c72fff14fa: Preparing
336650363c93: Preparing
345b092d4564: Preparing
d35df9c923f8: Preparing
a7d484df787a: Preparing
8dfad2055603: Preparing
a7d484df787a: Waiting
8dfad2055603: Waiting
d35df9c923f8: Layer already exists
345b092d4564: Layer already exists
a7d484df787a: Layer already exists
8dfad2055603: Layer already exists
1ee94547b4c6: Pushed
336650363c93: Pushed
03c72fff14fa: Pushed
984fb055d69a692963d6f9bb271764f18ec1de87: digest: sha256:d701540296e5b2387627cd73f8bed297a2f8e0780e7e4fc7eab46f3fc4651861 size: 1787
The push refers to repository [gitlab.<redacted>.<redacted>:4567/<redacted>/master]
1ee94547b4c6: Preparing
03c72fff14fa: Preparing
336650363c93: Preparing
345b092d4564: Preparing
d35df9c923f8: Preparing
a7d484df787a: Preparing
8dfad2055603: Preparing
a7d484df787a: Waiting
8dfad2055603: Waiting
336650363c93: Layer already exists
d35df9c923f8: Layer already exists
03c72fff14fa: Layer already exists
345b092d4564: Layer already exists
1ee94547b4c6: Layer already exists
a7d484df787a: Layer already exists
8dfad2055603: Layer already exists
<redacted>
latest: digest: sha256:d701540296e5b2387627cd73f8bed297a2f8e0780e7e4fc7eab46f3fc4651861 size: 1787
section_end:1619616357:step_script
[0Ksection_start:1619616357:cleanup_file_variables
[0K[0K[36;1mCleaning up file based variables[0;m
[0;msection_end:1619616358:cleanup_file_variables
[0K[32;1mJob succeeded
[0;m
Edited by Hordur Freyr Yngvason