# Rolling update not working with docker compose

**URL:** <https://forums.docker.com/t/rolling-update-not-working-with-docker-compose/148686>\
**Category:** Compose\
**Created:** [July 3, 2025, 11:04am UTC](https://forums.docker.com/t/rolling-update-not-working-with-docker-compose/148686 "2025-07-03T11:04:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonashaag2](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/jonashaag2/32/60272_2.png) [@jonashaag2](https://forums.docker.com/u/jonashaag2)\
**Post date:** [July 3, 2025, 11:04am UTC](https://forums.docker.com/t/rolling-update-not-working-with-docker-compose/148686/1 "2025-07-03T11:04:35Z")

</div>

I’m trying to get rolling updates working with docker compose (without swarm) and it’s not working.

Example:

```auto
services:
  test:
    image: ubuntu:22.04
    command: sleep 60
    deploy:
      replicas: 2
      update_config:
        parallelism: 1
        delay: 30s
        order: start-first
        failure_action: rollback
        monitor: 60s

```

IIUC this should start a new replica upon `docker compose up` to replace one of the replicas, and then repeat that process.

But what actually happens is that both containers are simply stopped at the same time, no additional replica is created, and there is not rolling update.

Thanks!

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/bluepuma77/32/32688_2.png) [@bluepuma77](https://forums.docker.com/u/bluepuma77)\
**Post date:** [July 3, 2025, 11:35am UTC](https://forums.docker.com/t/rolling-update-not-working-with-docker-compose/148686/2 "2025-07-03T11:35:38Z")

</div>

Rolling updates only work with Docker Swarm, as just discussed [here](https://forums.docker.com/t/rolling-deployments-using-update-config-delay-does-not-work/148655).

---

<div class="post-metadata">

**Author:** ![jonashaag2](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/jonashaag2/32/60272_2.png) [@jonashaag2](https://forums.docker.com/u/jonashaag2)\
**Post date:** [July 3, 2025, 11:49am UTC](https://forums.docker.com/t/rolling-update-not-working-with-docker-compose/148686/3 "2025-07-03T11:49:11Z")

</div>

Thank you! It’s hard to find up-to-date information on what’s supported by docker compose and what isn’t.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/docker/original/3X/d/4/d4fbccd46c81bfcffe9822e20e17736d946fa821.png) [@system](https://forums.docker.com/u/system)\
**Post date:** [August 2, 2025, 11:50am UTC](https://forums.docker.com/t/rolling-update-not-working-with-docker-compose/148686/4 "2025-08-02T11:50:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
