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 ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}' behaviour is inconsistent with docker #2598

Closed
yankay opened this issue Oct 26, 2023 · 1 comment · Fixed by #2619
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@yankay
Copy link
Contributor

yankay commented Oct 26, 2023

Description

The docker ps --format is inconsistent with docker and fail with {{.Label "io.x-k8s.kind.cluster"}}

Steps to reproduce the issue

  1. root@kay201:~# nerdctl ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'

FATA[0000] template: :1:2: executing "" at <.Label>: can't evaluate field Label in type container.ListItem

Describe the results you received and expected

root@kay200:~# docker ps -a --filter label=io.x-k8s.kind.cluster --format '{{.Label "io.x-k8s.kind.cluster"}}'
kind
kind
kind

What version of nerdctl are you using?

nerdctl version
Client:
Version: v1.6.2-29-gcaea0f91.m
OS/Arch: linux/amd64
Git commit: caea0f9.m
buildctl:
Version: v0.12.1
GitCommit: bb857a0d49f45aa0ce9cd554b78d4075553e20f9

Server:
containerd:
Version: v1.7.1
GitCommit: 1677a17964311325ed1c31e2c0a3589ce6d5c30d
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061b

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

None

Host information

No response

@AkihiroSuda
Copy link
Member

PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants