<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>

CC BY-SA 4.0
2019-09-30T12:16:31.780Z
Thanks, I've added a comment and upvoted the OP.
Daniel James Bryars
CC BY-SA 4.0
2022-08-19T09:38:09.547Z
This is still an open feature request sadly
AncientSwordRage
CC BY-SA 4.0
2023-04-24T07:52:41.460Z
Currently active PR: https://github.com/docker/compose/pull/10173
cueedee
CC BY-SA 4.0
2024-02-08T21:11:35.220Z
[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)
JWCS
CC BY-SA 4.0
2019-09-30T12:02:45.840Z
2022-08-19T15:21:30.853Z
2022-08-19T15:21:30.853Z
Ta Mu
<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>

<docker><docker-compose>
How do I do a dry run with docker-compose?
Daniel James Bryars
# 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)  

---

