我與本教程以下詹金斯碼頭工人流水線:內泊塢窗
https://www.linkedin.com/pulse/building-docker-pipeline-cloudbees-jenkins-jay-johnson
我在泊塢窗17運行詹金斯:
docker run -d -p 8080:8080 -p 50000:50000 --name jenkins jenkins
我遵循的指示和更換周杰倫的憑據用我自己的。我將我的信用添加到Global,然後將管道腳本中的信用重新命名。當我嘗試構建時,儘管出現以下錯誤:
Proceeding
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withDockerRegistry
Wrote authentication to /var/jenkins_home/.dockercfg
[Pipeline] {
[Pipeline] stage (Building)
Using the ‘stage’ step without a block argument is deprecated
Entering stage Building
Proceeding
[Pipeline] sh
[alfred-master] Running shell script
+ docker build -t jayjohnson/django-slack-sphinx:testing django
/var/jenkins_home/workspace/[email protected]/durable-713ce0d7/script.sh: 2: /var/jenkins_home/workspace/[email protected]/durable-713ce0d7/script.sh: docker: not found
[Pipeline] }
[Pipeline] // withDockerRegistry
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 127
Finished: FAILURE
我假設這是查找泊塢窗二進制文件。
如何從Docker容器內的回購庫構建Docker鏡像?
使用安裝了Docker的容器?在安裝了Docker的代理上運行構建?運行Jenkins不使用Docker? –