Docker Community Forums

Share and learn in the Docker community.

Create Docker container in Jenkins build

Hi community,

I currently create containers using the docker.yml file by passing the docker-compose -f docker.yml up in the command prompt. I want to emulate the same thing in jenkins, that is without manually typing the command I want when the jenkin job starts -

  1. Start the Containers
  2. Once the task is complete, remove the containers

I did find a plugin but not sure if this is the right now.

Thank you