Skip to content

nerdctl ps --format {{.Names}} behaviour is inconsistent with docker #2593

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

Closed
yankay opened this issue Oct 25, 2023 · 0 comments · Fixed by #2594
Closed

nerdctl ps --format {{.Names}} behaviour is inconsistent with docker #2593

yankay opened this issue Oct 25, 2023 · 0 comments · Fixed by #2594
Labels
bug Something isn't working

Comments

@yankay
Copy link
Contributor

yankay commented Oct 25, 2023

Description

The docker ps --format is inconsistent with docker , the brackets is not appeared in the docker.

Steps to reproduce the issue

  1. nerdctl create --label io.x-k8s.kind.cluster=kind busybox
  2. nerdctl ps -a --filter label=io.x-k8s.kind.cluster=kind --format {{.Names}}
    [busybox-0235b]

Describe the results you received and expected

busybox-0235b not [busybox-0235b]

What version of nerdctl are you using?

nerdctl version
Client:
Version: v1.6.2-29-g35966845
OS/Arch: linux/amd64
Git commit: 3596684
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)

Others

Host information

@yankay yankay added the kind/unconfirmed-bug-claim Unconfirmed bug claim label Oct 25, 2023
@yankay yankay changed the title nerdctl ps --format behaviour is inconsistent with docker nerdctl ps --format {{.Names}} behaviour is inconsistent with docker Oct 25, 2023
@AkihiroSuda AkihiroSuda added bug Something isn't working and removed kind/unconfirmed-bug-claim Unconfirmed bug claim labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants