jenkins-docs/simple-node-js-react-npm-app

Got error on pulling node:6-alpine

yehuizhang opened this issue · 1 comments

I got stuck on the step 5: run Jenkins after the first commit.

I got the following error on docker pull node:6-alpine

+ docker pull node:6-alpine
error during connect: Post https://docker:2376/v1.39/images/create?fromImage=node&tag=6-alpine: dial tcp: lookup docker on 127.0.0.11:53: no such host
script returned exit code 1

I ran into this error; it was fixed by re-running step 4:

docker container run --name jenkins-docker --rm --detach
--privileged --network jenkins --network-alias docker
--env DOCKER_TLS_CERTDIR=/certs
--volume jenkins-docker-certs:/certs/client
--volume jenkins-data:/var/jenkins_home
--volume "$HOME":/home
--publish 3000:3000 docker:dind