Skip to content

[BUG] Remove orphans is stopping containers unrelated to DockSTARTer #1333

@hannonq

Description

@hannonq

Bug report

Describe the bug
When running ds -c up, existing containers (created outside of DockSTARTer) are being removed.

To Reproduce
Steps to reproduce the behavior:

  • Run docker-compose up -d for a stack outside of DockSTARTer e.g. traefik
  • Check that it's running with docker ps
  • Run ds -v -c up on your existing stack
  • See error below in logs:
2021-06-12 13:48:33 [INFO  ]   Downloading run compose script.
latest: Pulling from linuxserver/docker-compose
Digest: sha256:57d36dd05592ac6e7763f470a91394d585fd33c043a53dda40b0480681d8ee66
Status: Image is up to date for ghcr.io/linuxserver/docker-compose:latest
ghcr.io/linuxserver/docker-compose:latest
Removing orphan container "pgadmin"
Removing orphan container "socket-proxy"
Removing orphan container "traefik"
Removing orphan container "redis"
Removing orphan container "postgres"
Removing orphan container "nextcloud"
Removing orphan container "authelia"
Creating dozzle ...
Creating transmissionvpn ...
Creating heimdall        ...
Creating filebrowser     ...

Expected behavior
DockSTARTer shouldn't touch existing containers created in a different stack. DS containers should start up without the --remove-orphans

I see that this behavior is intentional and was introduced in PR 210. It's a nice to have, but I think it should be optional. So, ds -c up should accept run without the --remove-orphans flag and accept this flag if it is desired by the user: ds -c up --remove-orphans.

System
(please complete the following information):

  • OS: Ubuntu Server
  • Version 20.04 LTS

Additional context
Not sure if this is relevant, but I'm running docker-compose in my system via the linuxserver image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions