我想用 jenkins 创建一个 docker 镜像,但找不到 docker
如何将 jenkins 添加到 Windows 上的 docker groupe ?我尝试添加 docker 插件但没有成功
这是我的管道
pipeline {
agent any
options { buildDiscarder(logRotator(numToKeepStr:'5'))}
environment {DOCKERHUB_CREDENTIALS = credentials('tfkben-dockerhub')}
stages {
stage('build'){ steps { sh 'docker build -t tfkben/ben:latest .' } }
stage('Login'){ steps { sh 'echo $DOCKERHUB_CREDENTIALS_PSW | docker login -u $DOCKERHUB_CREDENTIALS_USR --password-stdin ' }}
stage('Push'){ steps { sh 'docker push tfkben/ben:latest'} }
}
post { always { sh 'docker logout' }}
}
Run Code Online (Sandbox Code Playgroud)
我的 Dockerfile :
FROM python:3.11-rc-bullseye
WORKDIR /app …Run Code Online (Sandbox Code Playgroud) jenkins jenkins-plugins docker docker-compose jenkins-pipeline
我想安装 minikube,在启动命令后出现以下错误文本:
\n minikube v1.26.1 on Ubuntu 22.04\n\xe2\x9d\x97 minikube skips various validations when --force is supplied; this may lead to unexpected behavior\n\xe2\x9c\xa8 Using the docker driver based on existing profile\n The "docker" driver should not be used with root privileges. If you wish to continue as root, use --force.\n If you are running minikube within a VM, consider using --driver=none:\n https://minikube.sigs.k8s.io/docs/reference/drivers/none/\n Tip: To remove this root owned cluster, run: sudo minikube delete\n Starting control plane node minikube in cluster minikube\n …Run Code Online (Sandbox Code Playgroud)