finch icon indicating copy to clipboard operation
finch copied to clipboard

`compose exec` command is missing

Open KoichiKiyokawa opened this issue 2 years ago • 2 comments

First, thank you for all of your works on finch.

What is the problem you're trying to solve?. docker has compose exec command, but finch doesn't. https://docs.docker.com/engine/reference/commandline/compose_exec/

Describe the feature you'd like finch compose exec performs the same action as docker compose exec

KoichiKiyokawa avatar Dec 01 '22 10:12 KoichiKiyokawa

finch uses nerdctl as upstream. finch forwards the compose commands to nerdctl to perform the task. Currently, compose exec is not supported by nerdctl Here is the list of commands supported by nerdctl https://github.com/containerd/nerdctl#command-reference

I marked this issue as an enhancement. May be we can contribute to the nerdctl to implement compose exec.

monirul avatar Dec 01 '22 19:12 monirul

Just FYI now the command is implemented in nerdctl in https://github.com/containerd/nerdctl/pull/1598.

Only the --env arg may not work properly which will be fixed in this PR: https://github.com/containerd/nerdctl/pull/1614

djdongjin avatar Dec 06 '22 15:12 djdongjin

@KoichiKiyokawa, Finch 0.2.0 uses nerdctl 1.1 which supports compose exec command. example: finch compose exec service_name pwd

monirul avatar Jan 13 '23 19:01 monirul

@monirul Thank you very much! It helps me a lot!

KoichiKiyokawa avatar Jan 14 '23 12:01 KoichiKiyokawa