Skip to content

gefyra list --containers fails with "Error: list index out of range" #766

@crkurz

Description

@crkurz

What happened?

gefyra list --containers fails with Error: list index out of range when there are there are other containers with names starting with same name as gefyra container

What did you expect to happen?

.

Please provide the output of gefyra check.

.

How can we reproduce it (as minimally and precisely as possible)?

  1. gefyra run --name abc
  2. gefyra list --containers works fine
  3. docker run --name abc-nginx-5005 (please note that docker container name starts with abc)
  4. gefyra list --containers fails with Error: list index out of range

Note from Michael: identification of gyfyra containers should be based on tags (not on based on container name)

What Kubernetes setup are you working with?

$ kubectl version
# paste output here

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions