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

nerctl inspect returns invalid json for multiple containers #3476

Closed
flokain opened this issue Oct 1, 2024 · 1 comment
Closed

nerctl inspect returns invalid json for multiple containers #3476

flokain opened this issue Oct 1, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@flokain
Copy link

flokain commented Oct 1, 2024

Description

When running nerdctl inspect ....it returns invalid json in form of [{container1}][{container2}] instead of [{container1},{container2}]

This causes colima to fail with --mount-inotify --runtime containerd. see abiosoft/colima#910 (is closed but not fixed)

Steps to reproduce the issue

  1. sudo nerdctl --namespace 'k8s.io' inspect 4722f9cfc4f3 df6e66bf279e

Describe the results you received and expected

results

[
    {
        "Id": "4722f9cfc4f320678ceec6640765b959bf1dd56735661301ded967649a90bed2",
        "Created": "2024-09-27T09:18:35.426739516Z",
       ....
    }
]
[
    {
        "Id": "df6e66bf279e61f7cb03f34b86cb667c7b60c5f574f0b7cc19e7ef6013c2a4f2",
        "Created": "2024-09-27T09:18:35.425657747Z",
       ....
    }
]

expected

[
    {
        "Id": "4722f9cfc4f320678ceec6640765b959bf1dd56735661301ded967649a90bed2",
        "Created": "2024-09-27T09:18:35.426739516Z",
       ....
    },
    {
        "Id": "df6e66bf279e61f7cb03f34b86cb667c7b60c5f574f0b7cc19e7ef6013c2a4f2",
        "Created": "2024-09-27T09:18:35.425657747Z",
       ....
    }
]

What version of nerdctl are you using?

Client:
 Version:       v2.0.0-rc.2
 OS/Arch:       linux/arm64
 Git commit:    cfa7e5388f0d8fb4fe982a47c86e8f141c952d72
 buildctl:
  Version:      v0.12.5
  GitCommit:    bac3f2b673f3f9d33e79046008e7a38e856b3dc6

Server:
 containerd:
  Version:      v1.7.16
  GitCommit:    83031836b2cf55637d7abf847b17134c51b38e53
 runc:
  Version:      1.1.12
  GitCommit:    v1.1.12-0-g51d5e946

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

None

Host information

Client:
 Namespace:     default
 Debug Mode:    false

Server:
 Server Version: v1.7.16
 Storage Driver: overlayfs
 Logging Driver: json-file
  Cgroup Driver:  : systemd
  Cgroup Version: : 2
 Plugins:
  Log:     fluentd journald json-file syslog
  Storage: native overlayfs
 Security Options:
  apparmor
  seccomp
   Profile:     builtin
  cgroupns
 Kernel Version:   6.8.0-39-generic
 Operating System: Ubuntu 24.04 LTS
 OSType:           linux
 Architecture:     aarch64
 CPUs:             9
 Total Memory:     9.69GiB
 Name:             colima-devenv
 ID:               1c2a14b0-6d79-418c-a142-9e9584061fc3
@apostasie
Copy link
Contributor

Duplicate of #3006

@AkihiroSuda AkihiroSuda added duplicate This issue or pull request already exists and removed kind/unconfirmed-bug-claim Unconfirmed bug claim labels Oct 2, 2024
@AkihiroSuda AkihiroSuda closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants