Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nerdctl --namespace=k8s.io logs -f CRICONTAINER doesn't accept Ctrl-C #1956

Closed
AkihiroSuda opened this issue Jan 30, 2023 · 0 comments · Fixed by #1972
Closed

nerdctl --namespace=k8s.io logs -f CRICONTAINER doesn't accept Ctrl-C #1956

AkihiroSuda opened this issue Jan 30, 2023 · 0 comments · Fixed by #1972
Labels

Comments

@AkihiroSuda
Copy link
Member

Description

nerdctl --namespace=k8s.io logs -f CRICONTAINER doesn't seem to accept Ctrl-C

# nerdctl --namespace=k8s.io ps -a
CONTAINER ID    IMAGE                                                      COMMAND                   CREATED          STATUS    PORTS    NAMES
05b3fc3bcd36    registry.k8s.io/pause:3.7                                  "/pause"                  2 minutes ago    Up                 k8s://kube-system/coredns-787d4945fb-mfx6b
0e726b177b14    registry.k8s.io/pause:3.7                                  "/pause"                  3 minutes ago    Up                 k8s://kube-system/kube-scheduler-kind-control-plane
207933ad3ef1    docker.io/kindest/kindnetd:v20221004-44d545d1              "/bin/kindnetd"           2 minutes ago    Up                 k8s://kube-system/kindnet-p2tk5/kindnet-cni
2fc867f301fe    registry.k8s.io/kube-proxy:v1.26.0                         "/usr/local/bin/kube…"    2 minutes ago    Up                 k8s://kube-system/kube-proxy-jd7h6/kube-proxy
33c67db5329e    registry.k8s.io/pause:3.7                                  "/pause"                  3 minutes ago    Up                 k8s://kube-system/etcd-kind-control-plane
3798556286f8    registry.k8s.io/pause:3.7                                  "/pause"                  2 minutes ago    Up                 k8s://kube-system/kindnet-p2tk5
37d0ea0f8280    docker.io/kindest/local-path-provisioner:v0.0.22-kind.0    "local-path-provisio…"    2 minutes ago    Up                 k8s://local-path-storage/local-path-provisioner-c8855d4bb-mq4xv/local-path-provisioner
37d82c691e3d    registry.k8s.io/kube-scheduler:v1.26.0                     "kube-scheduler --au…"    3 minutes ago    Up                 k8s://kube-system/kube-scheduler-kind-control-plane/kube-scheduler
671db491120f    registry.k8s.io/pause:3.7                                  "/pause"                  2 minutes ago    Up                 k8s://kube-system/kube-proxy-jd7h6
8dd78bdfa5f8    registry.k8s.io/kube-controller-manager:v1.26.0            "kube-controller-man…"    3 minutes ago    Up                 k8s://kube-system/kube-controller-manager-kind-control-plane/kube-controller-manager
ab1d3563b8fd    registry.k8s.io/pause:3.7                                  "/pause"                  2 minutes ago    Up                 k8s://kube-system/coredns-787d4945fb-pk4jf
b8a830194757    registry.k8s.io/kube-apiserver:v1.26.0                     "kube-apiserver --ad…"    3 minutes ago    Up                 k8s://kube-system/kube-apiserver-kind-control-plane/kube-apiserver
c3d79dcf499d    registry.k8s.io/etcd:3.5.6-0                               "etcd --advertise-cl…"    3 minutes ago    Up                 k8s://kube-system/etcd-kind-control-plane/etcd
e2a8a13a8e50    registry.k8s.io/pause:3.7                                  "/pause"                  3 minutes ago    Up                 k8s://kube-system/kube-apiserver-kind-control-plane
e39f55689d84    registry.k8s.io/coredns/coredns:v1.9.3                     "/coredns -conf /etc…"    2 minutes ago    Up                 k8s://kube-system/coredns-787d4945fb-pk4jf/coredns
e8793b8cca8b    registry.k8s.io/coredns/coredns:v1.9.3                     "/coredns -conf /etc…"    2 minutes ago    Up                 k8s://kube-system/coredns-787d4945fb-mfx6b/coredns
f42fc02e21aa    registry.k8s.io/pause:3.7                                  "/pause"                  2 minutes ago    Up                 k8s://local-path-storage/local-path-provisioner-c8855d4bb-mq4xv
f873ebddcf25    registry.k8s.io/pause:3.7                                  "/pause"                  3 minutes ago    Up                 k8s://kube-system/kube-controller-manager-kind-control-plane

# nerdctl --namespace=k8s.io logs -f e8793b8cca8b
.:53
[INFO] plugin/reload: Running configuration SHA512 = 591cf328cccc12bc490481273e738df59329c62c0b729d94e8b61db9961c2fa5f046dd37f1cf888b953814040d180f52594972691cd6ff41be96639138a43908
CoreDNS-1.9.3
linux/amd64, go1.18.2, 45b0a11
^C^C^C^C^C

Steps to reproduce the issue

  1. nerdctl --namespace=k8s.io logs -f CRICONTAINER
  2. Ctrl-C, Ctrl-C, Ctrl-C, ...

Describe the results you received and expected

Received: the log viewer does not exit
Expected: the log viewer should exit

What version of nerdctl are you using?

ca4a763

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

zhaojizhuang added a commit to zhaojizhuang/nerdctl that referenced this issue Feb 3, 2023
zhaojizhuang added a commit to zhaojizhuang/nerdctl that referenced this issue Feb 4, 2023
zhaojizhuang added a commit to zhaojizhuang/nerdctl that referenced this issue Feb 6, 2023
zhaojizhuang added a commit to zhaojizhuang/nerdctl that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant