Open
Description
Description
lima nerdctl command crashes when I use a pipe | to redirect container output.
Issue
lima nerdctl run --rm -it bash -- echo test | grep test
panic: provided file is not a console
goroutine 1 [running]:
github.com/containerd/console.Current()
/go/pkg/mod/github.com/containerd/[email protected]/console.go:77 +0xa5
main.runAction(0xc0001e0c80, {0xc00058b480, 0x4, 0x8})
/go/src/github.com/containerd/nerdctl/cmd/nerdctl/run.go:324 +0x42c
github.com/spf13/cobra.(*Command).execute(0xc0001e0c80, {0xc00013a020, 0x8, 0x8})
/go/pkg/mod/github.com/spf13/[email protected]/command.go:872 +0x694
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001e0500)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:990 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
/go/pkg/mod/github.com/spf13/[email protected]/command.go:918
main.xmain()
/go/src/github.com/containerd/nerdctl/cmd/nerdctl/main.go:84 +0x9f
main.main()
/go/src/github.com/containerd/nerdctl/cmd/nerdctl/main.go:67 +0x19
env
OS: mac OS 12.5
Shell: zsh and bash
limactl version 0.11.3
workaround
use limactl shell default
limactl shell default
$ nerdctl run --rm -it bash -- echo test | grep test
test