-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Description
Description
Hi there, I encountered an issue of docker compose down with depends_on init containers. compose down fails when the init containers are not running and missing after completed it. In my scenario, init containers can be removed by docker system prune.
Steps To Reproduce
- Create services
depends_oninit containers docker compose -p some-proj up -d#=> containers run and init containers stop withservice_completed_successfullydocker system prune -af#=> init containers are removeddocker compose -p some-proj down#=> errorcould not find init-container: not found
Compose Version
Docker Compose version v2.25.0
Docker Environment
$ docker info
Client: Docker Engine - Community
Version: 26.0.0
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.13.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.25.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
...
Anything else?
--remove-orphans option does not help it.
Reactions are currently unavailable