Is it possible to actual run the docker steps?
See original GitHub issueBuilding docker image for runtime null
[Pipeline] sh
[job] Running shell script
+ docker build -t tests:null -f Dockerfile.tests .
/tmp/jenkinsTests.tmp/jenkins8996889882339540707test/workspace/job@tmp/durable-57fedee8/script.sh: 2: /tmp/jenkinsTests.tmp/jenkins8996889882339540707test/workspace/job@tmp/durable-57fedee8/script.sh: docker: not found
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Tests Execution)
...
...
...
ERROR: script returned exit code 127
Finished: FAILURE
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Containerize an application - Docker Documentation
Start your container using the docker run command and specify the name of the image you just created: $ docker run -dp 3000:3000...
Read more >docker run - Docker Documentation
docker run: The `docker run ` command first `creates` a writeable container layer over the specified image, and then `starts` it using the...
Read more >Docker run reference
Docker runs processes in isolated containers. A container is a process which runs on a host. The host may be local or remote....
Read more >Run your tests - Docker Documentation
Run your tests · Prerequisites . Work through the steps to build an image and run it as a containerized application in...
Read more >Docker Engine post-installation steps
Manage Docker as a non-root user · Create the docker group. sudo groupadd docker · Add your user to the docker...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ndeloof @schnatterer I actually got it to work following the suggestions from https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322. I could get it to work to just run a container with the following volumes:
/var/run/docker.sock
docker
commandSolution
marcellodesales/jenkinsfile-runner
This is actually an acceptable solution for my case using Docker for Mac to support development of the Pipeline.
I can’t see any reason the jenkinsfile-runner could not run docker steps, it just need
docker
command line available in the current node, i.e local machine running jenkinsfile-runner.Based on your comment :
it sounds like you use jenkinsfile-runner from a docker image, not running directly as a CLI tool. Doing so you indeed need to customize the docker image to have
docker
CLI installed and grant access to docker infrastructure.