Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Erro: Is the docker daemon running?.

Como já citei em outros posts no forum, não consegui ativar minha cloud com TCP, e sim consegui usando , conforme o help do jenkins explica:

URI to the Docker Host you are using. May be left blank to use the Docker default (defined by DOCKER_HOST environment variable) (typically unix:///var/run/docker.sock or tcp://127.0.0.1:2376).

Então deve ser por isso que o push proposto nesta aula para o dockerhub falhou...e agora josé. Foi tudo bem até bater nesta tarefa. Abaixo a saida de console da tentativa.

Cloning the remote Git repository
Cloning repository git@github.com:anderson-soza/jenkins-todo-list.git
 > git init /var/lib/jenkins/workspace/jenkins-todo-list-principal # timeout=10
Fetching upstream changes from git@github.com:anderson-soza/jenkins-todo-list.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
using GIT_SSH to set credentials github-ssh
 > git fetch --tags --progress -- git@github.com:anderson-soza/jenkins-todo-list.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url git@github.com:anderson-soza/jenkins-todo-list.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
Checking out Revision 72411db7121a8890d3109fb4863c29691f17c012 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 72411db7121a8890d3109fb4863c29691f17c012 # timeout=10
Commit message: "meu primeiro commit"
 > git rev-list --no-walk 72411db7121a8890d3109fb4863c29691f17c012 # timeout=10
provisioning config files...
copy managed file [.env-dev] to file:/var/lib/jenkins/workspace/jenkins-todo-list-principal/.env
[jenkins-todo-list-principal] $ /bin/sh -xe /tmp/jenkins5406570016527287429.sh
+ docker run --rm -i hadolint/hadolint
docker: Cannot connect to the Docker daemon at tcp://127.0.0.1:2376. Is the docker daemon running?.
See 'docker run --help'.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
2 respostas

Resolvido: Aparentemente estava tudo certo, mas por algum motivo a configuração não estava de fato sendo habilitada, então resolvi apagar o arquivo override.conf e criar um novo do zero, apliquei, reiniciei o vagrant e funcionou, porta TCP ativa finalmente. Imagino que tenha alguma "sujeira" no copiar e colar o texto no arquivo que bugou o arquivo. Sabe-se-ládeus.

vagrant@ubuntu-bionic:~$ systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─override.conf Active: active (running) since Fri 2020-10-09 15:36:10 UTC; 24s ago Docs: https://docs.docker.com Main PID: 1520 (dockerd) Tasks: 9 CGroup: /system.slice/docker.service └─1520 /usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376

solução!

Resolvido: Aparentemente estava tudo certo, mas por algum motivo a configuração não estava de fato sendo habilitada, então resolvi apagar o arquivo override.conf e criar um novo do zero, apliquei, reiniciei o vagrant e funcionou, porta TCP ativa finalmente. Imagino que tenha alguma "sujeira" no copiar e colar o texto no arquivo que bugou o arquivo. Sabe-se-ládeus.

vagrant@ubuntu-bionic:~$ systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─override.conf Active: active (running) since Fri 2020-10-09 15:36:10 UTC; 24s ago Docs: https://docs.docker.com Main PID: 1520 (dockerd) Tasks: 9 CGroup: /system.slice/docker.service └─1520 /usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software