puppetlabs-docker icon indicating copy to clipboard operation
puppetlabs-docker copied to clipboard

compose up_args are inserted before the up command

Open deligatedgeek opened this issue 3 weeks ago • 0 comments

Describe the Bug

When I define up_args in docker_compose they are inserted before the up command causing an error in the puppet run. Example

 docker_compose { 'application':
    ensure        => present,
    up_args       => '--build',
  }
}

Produces the following line, which fails

docker compose -f /opt/app/docker-compose.yml -p config-webapp --build up -d --remove-orphans

Expected Behavior

The following line should be generated and executed

docker compose -f /opt/app/docker-compose.yml -p application up -d --build --remove-orphans

Steps to Reproduce

Steps to reproduce the behavior: Use the above compose code

Environment

  • Version [7.37.2]
  • Platform [Ubuntu 24.04]

Additional Context

Add any other context about the problem here.

deligatedgeek avatar Nov 28 '25 17:11 deligatedgeek