-
Notifications
You must be signed in to change notification settings - Fork 699
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
limactl shell
command actually take two responsibility:
- : lima act like ssh,
# expected to get home dir in lima guest vm
$ limactl shell default -- echo '$HOME'
/home/robert.linux
Case 1 is right.
- : lima act like command tunnel, in following example, as tunnel to pass arguments to nerdctl.
# expected to get home path in container
$ alias docker='limactl shell default -- nerdctl'
docker run -it --rm alpine:latest sh -x -c 'echo $HOME'
+ echo
Case 2, the behavior of limactl is not expected.
Comparing with docker for desktop:
$ /usr/local/bin/docker run -it --rm alpine:latest sh -x -c 'echo $HOME'
+ echo /root
/root
I propose to add --raw
flag to make limactl support act like command tunnel, which means what you pass to limactl, what inner command get.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request