You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
docker container list --all --format json
sudo ./nerdctl container list --all --format json
Describe the results you received and expected
Docker returns:
{
"Labels": "org.opencontainers.image.version=f40ece5,org.opencontainers.image.documentation=https://github.com/dubo-dubon-duponey/docker-dns/blob/master/README.md,org.opencontainers.image.ref.name=bookworm-2024-03-01,org.opencontainers.image.revision=f40ece567f4d6a0b1c8249f32ab0a82f5594efca,org.opencontainers.image.created=2024-03-27T12:15:26-0700,org.opencontainers.image.licenses=The MIT License (MIT),org.opencontainers.image.source=https://github.com/dubo-dubon-duponey/docker-dns/tree/master,org.opencontainers.image.vendor=dubodubonduponey,org.hadron.core.version=v0.1-dev,org.hadron.plan.tag=2024/04/02-17:19:16-5F6228B8-4152-4C7B-8D44-4E9293B1C59D,org.hadron.plan.sha=3c8d9485ffe7f0c91b837942b98be71d3d65a632029ae579143387eda499a137,org.opencontainers.image.authors=Dubo Dubon Duponey <[email protected]>,org.opencontainers.image.description=So image. Much DBDBDP. Such description.,org.opencontainers.image.title=A DBDBDP image,org.opencontainers.image.url=https://github.com/dubo-dubon-duponey/docker-dns,org.hadron.plan.description=some_plan_descriptor,org.hadron.plan.name=plan_name"
}
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.
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: