brain/04 Ressourcen/IT/Jenkins Docker-Fehler beheb...

34 lines
1.2 KiB
Markdown

---
tags:
- upnote-import
---
# Jenkins Docker-Fehler beheben
Installation [https://github.com/jenkinsci/docker/blob/master/README.md](https://github.com/jenkinsci/docker/blob/master/README.md)
Docker mit einem Volume auf dem Host starten:
docker run -p 8080:8080 -p 50000:50000 -v jenkins\_home:/var/jenkins\_home jenkins/jenkins:lts
—> /var/lib/docker/volumes/jenkins\_home
Jenkins URL [http://172.21.50.48:8080/](http://172.21.50.48:8080/)
Fehler:
\[KbsV2\] Running shell script+ docker-compose -f docker-compose.yml -f docker-compose.override.yml buildCouldn't connect to Docker daemon at http+[docker://localhost](docker://localhost) - is it running?If it's at a non-standard location, specify the URL with the DOCKER\_HOST environment variable.
[https://medium.com/@ibrahimgunduz34/if-you-faced-an-issue-like-couldnt-connect-to-docker-daemon-at-http-docker-localunixsocket-is-27b35f17d09d](https://medium.com/@ibrahimgunduz34/if-you-faced-an-issue-like-couldnt-connect-to-docker-daemon-at-http-docker-localunixsocket-is-27b35f17d09d)
Couldn't connect to Docker daemon at http+[docker://localhost](docker://localhost) - is it running?
Rechte setzen:
```
sudo ls -la /var/run/docker.sock
sudo chmod 777 /var/run/docker.sock
```