# Error with dokcer compose

**URL:** <https://forums.docker.com/t/error-with-dokcer-compose/152245>\
**Category:** General\
**Tags:** docker-compose\
**Created:** [August 18, 2026, 1:27am UTC](https://forums.docker.com/t/error-with-dokcer-compose/152245 "2026-08-18T01:27:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doerrust](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/doerrust/32/64128_2.png) [@doerrust](https://forums.docker.com/u/doerrust)\
**Post date:** [August 18, 2026, 1:27am UTC](https://forums.docker.com/t/error-with-dokcer-compose/152245/1 "2026-08-18T01:27:43Z")

</div>

Hello everyone

i am building docker compose with postgresql, i see this error.

Can anyone help me with this error? Many thanks for your help.

Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint blog-db-1 (664ce46de094472759b71913c7d7d0d112ee809ffa8d66b3ebd5c58a7d3b101c): Bind for 0.0.0.0:5433 failed: port is already allocated

```auto
services:
  db:
    env_file:
      - "enviroment_blog.env"
    image: postgres:18
    environment:
      POSTGRES_PASSWORD: carlos
    ports:
      - "5433:5432"
    volumes:
      - postgres_data:/var/lib/postgresql

volumes:
  postgres_data:

```

---

<div class="post-metadata">

**Author:** ![alessiovitolo](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/alessiovitolo/32/65576_2.png) [@alessiovitolo](https://forums.docker.com/u/alessiovitolo)\
**Post date:** [August 18, 2026, 6:24am UTC](https://forums.docker.com/t/error-with-dokcer-compose/152245/2 "2026-08-18T06:24:31Z")

</div>

Hi!

The error means that port 5433 on the host is already in use by another process or container. Check what is using port 5433, or change the host port.

You can first run:

`docker ps -a`

Check if another container is already using port 5433. If so, you can stop/remove it or change the host port in your Compose file.

---

<div class="post-metadata">

**Author:** ![sajeel422000](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/sajeel422000/32/65494_2.png) [@sajeel422000](https://forums.docker.com/u/sajeel422000)\
**Post date:** [August 18, 2026, 10:57am UTC](https://forums.docker.com/t/error-with-dokcer-compose/152245/3 "2026-08-18T10:57:38Z")

</div>

an other container is already on this port use

```bash
docker ps -a

```

to detect and delete the container

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/docker/original/3X/6/9/69c4b276d1979e4e35a2f0338bac246a4de21daf.png) [@system](https://forums.docker.com/u/system)\
**Post date:** [September 28, 2026, 6:08am UTC](https://forums.docker.com/t/error-with-dokcer-compose/152245/5 "2026-09-28T06:08:09Z")

</div>

Closed on September 28, 2026, 6:08am UTC

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