Jenkins无法使用Docker:无法连接到Docker守护程序

问题描述 投票:-1回答:1

我已经通过头盔在我的k8s集群中安装了詹金斯。我一直在尝试构建docker映像并将其推送到gitlab registery,这样我就可以通过cloudbees docker插件稍后将其用于部署,但是我一直收到此错误(此错误:

   Started by user admin
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/Build
using credential gitlab
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://gitlab.com/Ferios08/letsdevops-angular.git # timeout=10
Fetching upstream changes from https://gitlab.com/Ferios08/letsdevops-angular.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials gitlab
 > git fetch --tags --progress -- https://gitlab.com/Ferios08/letsdevops-angular.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision bbfedaeb976edde010c496c63de43ec01184011e (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f bbfedaeb976edde010c496c63de43ec01184011e # timeout=10
Commit message: "fixed deploy"
 > git rev-list --no-walk bbfedaeb976edde010c496c63de43ec01184011e # timeout=10
[Build] $ /var/jenkins_home/tools/org.jenkinsci.plugins.docker.commons.tools.DockerTool/docker/bin/docker build -t registry.gitlab.com/ferios08/letsdevops-angular --pull=true /var/jenkins_home/workspace/Build
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Build step 'Docker Build and Publish' marked build as failure
Finished: FAILURE

任何想法如何解决?谢谢

docker jenkins kubernetes kubernetes-helm cloudbees
1个回答
0
投票

在我看来,您的docker守护程序未运行。

© www.soinside.com 2019 - 2024. All rights reserved.