lazydocker icon indicating copy to clipboard operation
lazydocker copied to clipboard

Please add a pop up for custom command

Open MayDomine opened this issue 1 year ago • 2 comments

Describe the solution you'd like When I configure a custom command , provide a key:value for prompting some message. In a lot of case such as rename container/images save images/container and so on.

MayDomine avatar Oct 31 '24 08:10 MayDomine

Just use custom commands in the config?

customCommands:
  containers:
    - name: bash
      attach: true
      command: 'docker exec -it {{ .Container.ID }} bash'
      serviceNames: []

https://github.com/blwsh/lazydocker/blob/df6c8c196e218bdff48e72824dfd0da43335f05d/docs/Config.md#L118-L129

A popup seems redudent. If you want to use a different shell once you're in the container - just execute the shell.

blwsh avatar Nov 29 '24 02:11 blwsh

Well, sometimes before you execute the command, you need to edit the command. A container-rename action is such a case that you need to input the name before you actually run the command.

MayDomine avatar May 19 '25 06:05 MayDomine