-
-
Notifications
You must be signed in to change notification settings - Fork 290
Open
Labels
Description
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 -dfor a stack outside of DockSTARTer e.g.traefik - Check that it's running with
docker ps - Run
ds -v -c upon 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.
Reactions are currently unavailable