Reputation: 37
I'm now running jenkins in docker with the access to host's docker, so that I can run docker command without starting a slave on the same host.
But when I try to map some volume inside jenkins to the container I want to run(in host), the container will look for the volume from host, not from jenkins.
Now my jobs script becomes ugly, it has to specify a absolute path for the volume(on the host), and it can only be executed on the master now.
Is there a way to get around this?
Upvotes: 2
Views: 1062
Reputation: 488
You need to map using -v the same folder of host in the both containers.
Upvotes: 1