-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Closed
compose-spec/compose-go
#281Description
Description
depends on in docker-compose V2 is not work but worked without V2
Steps to reproduce the issue:
1.create a simple compose file contents
version: '3.9'
services:
web:
build: .
depends_on:
- db
- redis
redis:
image: redis
db:
image: postgres
2.remove
db:
image: postgres
3.docker-compose up
Describe the results you received:
nothing
Describe the results you expected:
ERROR: Service 'web' depends on service 'db' which is undefined.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker compose version:
Docker Compose version v2.0.0
Output of docker info:
Docker version v4.1.1
Additional environment details:
Mark-CChen
Metadata
Metadata
Assignees
Labels
No labels

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
