I am attempting to use Jenkins to create a docker instance with a docker.build() command. The issue is that I have more than one docker file (all of which have unique names) which will be used on different scenarios. Is there a way to use the docker.build command in Jenkins while also specifying which file to use?
api = docker.build("api:Dockerfile-api")
I am attempting to emulate functionality for the command
docker build -t <app-name>-api -f Dockerfile-api .
在谈论docker.build()
-pipeline-plugin时, docker.build()
函数采用的第二个参数可以是docker.build("svc", "-f docker/db/Dockerfile .")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.