lima icon indicating copy to clipboard operation
lima copied to clipboard

Input redirection is not working

Open azhouwd opened this issue 3 years ago • 1 comments

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

azhouwd avatar Sep 30 '22 17:09 azhouwd

Possibly a duplicate of

  • https://github.com/containerd/nerdctl/issues/1404

AkihiroSuda avatar Oct 03 '22 05:10 AkihiroSuda