Port is already allocated error while port is free

it’s my minio container

    container_name: minio-service
    image: bitnami/minio:2023.11.20
      - .env
      - ./storage/minio:/bitnami/minio/data
      - "9001:9001"
      - default

after running docker compose up, I get this error:

Error response from daemon: driver failed programming external connectivity on endpoint teratech-minio (8e21a107ef74eeb769aa2a75122c24dd95160037c09b5595128f3f315462aaa5): Bind for failed: port is already allocated

but the port is free and when I run minio on local, it’s running on port 9001 without issue

and the error is same when I set port to any container

I found the problem
I have install docker engin and docker desktop on my os
and container was running in both :expressionless: