humanmade / altis-local-server

Local Server module for Altis
https://www.altis-dxp.com/resources/docs/local-server/
17 stars 4 forks source link

Unable to delete Altis stack instance in Docker Desktop #430

Open ntwb opened 2 years ago

ntwb commented 2 years ago

Description

When using Docker Desktop I'm not able to delete an entire Altis instance in a couple of mouse clicks

Without this ability each Altis container must be deleted one-by-one, a little painful to have to delete ~15 containers one-by-one

Background Context

When switching between Altis instances Docker network conflicts arise between the Altis instances so the Docker containers need to be destroyed and then recreated.

I don't use composer server destroy as this also destroys the Altis Docker volumes, and as I want to retain the data in the Docker volumes (DB, ES, S3, etc) this command is too destructive

Thus, I use Docker Desktop to manually delete just the Altis stack Docker containers

Steps to reproduce:

  1. Open Docker Desktop (MacOS)
  2. On the "parent" container of the Altis instance click the "DELETE" button

What I expected to see:

The ability to be able to delete an entire Altis instance in only a few mouse clicks

What I actually see:

The following error message is displayed:

Cannot remove Docker Compose application. Reason: Error invoking remote method 'compose-action': 
Error: Command failed: docker-compose --file "docker-compose.yml" --file "mutagen.yml" --project-name "platform-dev" --project-directory "/Users/netweb/Code/humanmade/platform-dev/vendor" down .
FileNotFoundError: [Errno 2] No such file or directory: './mutagen.yml'

Docker-Mutagen

Acceptance criteria:

roborourke commented 2 years ago

Are you still using Mutagen? You could try deleting that if not.

I'm not sure why exactly it's including mutagen.yml as a file in that command. Either way seems pretty internal to how Docker Desktop works, I don't think we can fix this here.

What I'm more interested in is if you can elaborate on this:

When switching between Altis instances Docker network conflicts arise between the Altis instances so the Docker containers need to be destroyed and then recreated.

What kind of conflicts and what problems do you get as a result of this?