I am using CircleCI 2.0 and I am planning to use specific version of Node.js on my CircleCI.
Here is what I wrote on my config.yml to use default CircleCI machine with old version of Node.js 6.1.
version: 2 jobs: build: machine: true
In order to use Node v8, I adopted docker in place of machine:
version: 2 jobs: build: docker: - image: circleci/node:8.9.3-browsers ...
However, this specific docker image from CircleCI doesn’t work properly. According to the description from circleci/node, the image should contain docker installation and I think docker commands should also work fine. BUT inside circle,
$ docker --version Docker version 17.12.0-ce, build c97c6d6 $ docker run hello-world Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? $ sudo service docker status docker: unrecognized service ...
What am I wrong?
Hope to get some help to resolve this issue!