Answers: <p>A dry run for <code>docker-compose</code> seems to be an <a href="https://github.com/docker/compose/issues/1203" rel="nofollow noreferrer">open feature request</a>.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-09-30T12:16:31.780Z
Answers: Thanks, I've added a comment and upvoted the OP.
Answers: Daniel James Bryars
Answers: CC BY-SA 4.0
Answers: 2022-08-19T09:38:09.547Z
Answers: This is still an open feature request sadly
Answers: AncientSwordRage
Answers: CC BY-SA 4.0
Answers: 2023-04-24T07:52:41.460Z
Answers: Currently active PR: https://github.com/docker/compose/pull/10173
Answers: cueedee
Answers: CC BY-SA 4.0
Answers: 2024-02-08T21:11:35.220Z
Answers: [Now available under the 'alpha' command](https://docs.docker.com/engine/reference/commandline/compose_alpha_dry-run/): `docker compose alpha dry-run -- [CMD ...]` (As of compose v2.16.0, with more support / bug fixes in newer versions)
Answers: JWCS
Answers: CC BY-SA 4.0
Answers: 2019-09-30T12:02:45.840Z
Answers: 2022-08-19T15:21:30.853Z
Answers: 2022-08-19T15:21:30.853Z
Answers: Ta Mu
Body: <p>I want to know what docker-compose is going to do before I do it. </p>
  
  <p>Is there a tool or flag which I can use to see what docker-compose would do without actually stopping containers and starting new ones?</p>
  
Tags: <docker><docker-compose>
Title: How do I do a dry run with docker-compose?
UserDisplayName: Daniel James Bryars
ThreadText: # How do I do a dry run with docker-compose?
  
  (Asked by: username_0 on 2019-09-30)
  
  I want to know what docker-compose is going to do before I do it.
  
  Is there a tool or flag which I can use to see what docker-compose would do without actually stopping containers and starting new ones?
  
  **Tags:** docker, docker-compose
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-09-30. Score: 7 | Accepted answer
  
  A dry run for `docker-compose` seems to be an [open feature request](https://github.com/docker/compose/issues/1203).
  
  > **Comments:**
  > **username_0**: Thanks, I've added a comment and upvoted the OP.  
  > **username_2**: This is still an open feature request sadly  
  > **username_3**: Currently active PR: https://github.com/docker/compose/pull/10173  
  > **username_4**: [Now available under the 'alpha' command](https://docs.docker.com/engine/reference/commandline/compose_alpha_dry-run/): `docker compose alpha dry-run -- [CMD ...]` (As of compose v2.16.0, with more support / bug fixes in newer versions)  
  
  ---
  
  