Skip to content

Multiple projects with the same service names does not work #833

Description

@dougclayton

Describe the bug
Lazydocker does not support "clones" of the same docker compose project, or any case where two projects share a service name.

To Reproduce
Steps to reproduce the behavior:
Make docker1 and docker2 directories, each with this compose.yaml:

services:
  sleep:
    image: ubuntu:latest
    entrypoint: ["/bin/sh", "-c"]
    command: ["echo 'Sleeping...' && sleep 100000"]
    stop_grace_period: 0s

Run docker compose create in each. Now run lazydocker in each. One of them will detect the other as the project and will not be able to manage the one in the current directory. Using an explicit -p does not fix this.

Expected behaviour
Both instances manage their own local project regardless of the service name.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Lazydocker Version 0.25.2

Additional context
This was seemingly introduced in #774

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions