Hi, I’ve just updated to version 3.4.0 of docker desktop for mac, and now I can’t start my containers.
15:50 38d/flow jameshulme (main) >> docker compose up [+] Running 9/11 ⠿ Volume "flow_database-testdata" Created 0.1s ⠿ Volume "flow_redis" Created 0.0s ⠿ Volume "flow_node_cache" Created 0.0s ⠿ Volume "flow_database-data" Created 0.0s ⠼ Container flow_db_1 Creating 0.4s ⠼ Container flow_testdb_1 Creating 0.4s ⠿ Container flow_build_1 Created 0.4s ⠿ Container flow_fakempdb_1 Created 0.4s ⠿ Container flow_typecheck_1 Created 0.3s ⠿ Container flow_redis_1 Created 0.3s ⠿ Container flow_fakeid_1 Created 0.3s Error response from daemon: Duplicate mount point: /var/lib/postgresql/data
I have tried docker compose down
I have tried deleting everything manually
I have tried restarting docker and my laptop
Relevant portion of docker-compose.yml
version: '3' services: # postgres for flow development instance db: image: "postgres" # use latest official postgres version volumes: - database-data:/var/lib/postgresql/data/ # persist data even if container shuts downvolumes: environment: POSTGRES_DB: flow_dev POSTGRES_PASSWORD: password POSTGRES_USER: flow ports: - "8181:5432" # postgres for jest tests testdb: image: "postgres" # use latest official postgres version volumes: - database-testdata:/var/lib/postgresql/data/ # persist data even if container shuts downvolumes: environment: POSTGRES_DB: flow_test POSTGRES_PASSWORD: password POSTGRES_USER: flow ports: - "8182:5432" ... volumes: database-data: database-testdata:
This was working before I updated. And it sounds like 3.4.0 does something with volumes.
So I’m fairly confident that this is a bug or breaking change with 3.4.0. Does anyone else have this problem?