Wrong container selected for shell

Author: guidol-iveCreated Sep 21, 2026Updated Sep 26, 2026
Labelsbug

Lazydocker 0.24.4

Environment 1

Folder: /home/env1

name: matomo

services:
...
  app:
  ...

Environment 2

Folder: /home/env2

services:
  app:

Reproduction

Go into the folder /home/env1, start lazydocker, press shift E to get a shell into the running app container of environment 2.

Go into the folder /home/env2, start lazydocker, press shift E to get a shell into the running app container of environment 1.

More

The services tab also interchanges the name.

Expectation

The program correctly determines what docker is running, taking into account "name".

Source: jesseduffield/lazydocker