Skip to content

Input redirection is not working #1078

Open
@azhouwd

Description

@azhouwd

Description

Lima version:
[user@lima-default default]$ uname -a
Linux lima-default 5.17.5-300.fc36.aarch64 SMP Thu Apr 28 15:22:08 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

Host OS
Darwin 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64

Description
Command:
~/Desktop ✗ ➭ ./_output/lima/bin/limactl shell default nerdctl load < alpine.tar
Output:
time="2022-09-30T17:30:25Z" level=fatal msg="stdin is empty and input flag is not specified"

When using nerdctl, the input source seems not been recognized when using input redirection sign. The above command is interpreted as nerdctl load.

However after shelling into the Lima instance then running the command, it works fine.
Shell into Lima instance:
~/Desktop ✗ ➭ ./_output/lima/bin/limactl shell default
Run command inside Lima:
[user@lima-default default]$ nerdctl load < alpine.tar
Output:
unpacking docker.io/library/alpine:latest (sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad)...done

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions