-
Notifications
You must be signed in to change notification settings - Fork 592
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
docker / nerdctl inconsistent value type for Labels returned by container list --format json
#2987
Comments
Interestingly, I would argue that we at least need to be consistent between commands. |
Also, more generally, the output of that command is varying a lot between docker and nerdctl ("State", "Status" have different syntax and some keys are present in one but not the other). If consistency with Docker is required on this command, there is a lot of work to get it there. |
Thanks for reporting, it should follow Docker's behavior, although Docker seems weird in this case |
Description
docker returns Labels as a string with coma separated
key=value
, while nerdctl return them as an object.I appreciate that nerdctl wants to mimic docker behavior as much as possible and I am usually on board with that, but in that case, I think Docker is just wrong and nerdctl should keep the current behavior, even at the cost of deviating.
I am opening the issue so that we can have a discussion on this and decide on a resolution.
My vote obviously is to just document it and not change the current behavior.
Thoughts?
Steps to reproduce the issue
Describe the results you received and expected
Docker returns:
Nerdctl returns:
What version of nerdctl are you using?
1.7.6
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
The text was updated successfully, but these errors were encountered: