jesseduffield / jesseduffield/lazydocker

Add a dedicated 'Start' command for stopped containers

Open
#836 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
52.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi! I noticed that when a container is stopped externally or crashes, lazydocker often gets out of sync and still thinks the container is running. Because of this, pressing 's' triggers a "Do you really want to stop this container?" confirmation instead of starting it.

Since starting a container is a core action, it would be amazing to have a fallback or a dedicated keybind/menu option explicitly for starting exited containers, instead of relying solely on the dynamic state toggle which frequently experiences sync issues with the Docker daemon.

As a temporary workaround, I had to manually register a custom command in config.yml:
command: "docker start {{.Container.Name}}"

It would be awesome to have this natively supported or better synchronized out of the box!

Contributor guide

Open the contributing guide

Research direction

Start with the container action and dynamic state toggle, then compare them with the custom command shown in config.yml. Add a native way to start exited containers without the incorrect stop confirmation, and verify that it works when a container has stopped externally or crashed.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.