amazon web services - AWS ECS & Docker: Cannot connect to the Docker daemon at tcp://<MY-ID>.dkr.ecr.us-east-1.amazonaws.com:2375/<PROJECT> -


i'm attempting follow guide here continuous integration / continuous deployment: http://docs.aws.amazon.com/awsgettingstartedcontinuousdeliverypipeline/latest/gettingstarted/cicd_jenkins_pipeline.html

i've run through steps , deployed, i'm getting following error when build triggered in jenkins:

cannot connect docker daemon @ tcp://<my-id>.dkr.ecr.us-east-1.amazonaws.com:2375/hello-world. docker daemon running? 

the full build output follows:

started user <my_name> building in workspace /var/lib/jenkins/workspace/hello-world  > git rev-parse --is-inside-work-tree # timeout=10 fetching changes remote git repository  > git config remote.origin.url https://github.com/securityvoid/hello-world.git # timeout=10 fetching upstream changes https://github.com/securityvoid/hello-world.git  > git --version # timeout=10 using git_ssh set credentials   > git fetch --tags --progress https://github.com/securityvoid/hello-world.git +refs/heads/*:refs/remotes/origin/*  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 checking out revision 67019adfedd56dd6504ebdaa6430097855c936db (refs/remotes/origin/master) commit message: "update readme"  > git config core.sparsecheckout # timeout=10  > git checkout -f 67019adfedd56dd6504ebdaa6430097855c936db  > git rev-list 67019adfedd56dd6504ebdaa6430097855c936db # timeout=10 [hello-world] $ /bin/bash /tmp/jenkins3002143992924688341.sh flag --email has been deprecated, removed in 1.14. login succeeded [hello-world] $ docker build -t hello-world:v_2 --pull=true /var/lib/jenkins/workspace/hello-world cannot connect docker daemon @ tcp://<my-id>.dkr.ecr.us-east-1.amazonaws.com:2375/hello-world. docker daemon running? build step 'docker build , publish' marked build failure finished: failure 

does know i'm doing wrong? googling error stated need run docker service, shouldn't running on ecs default?

i figured out issue. had failed read directions , instead of entering docker container registry "registry" field of jenkins, entered "docker host uri".

by setting url to:

https://<my-id>.dkr.ecr.us-east-1.amazonaws.com/hello-world 

this error went away.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -