mirror of
https://github.com/docker/compose.git
synced 2026-10-08 21:21:10 +00:00
Fix docker context ls for retrocompatibility
It writes each context as an independent object line Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
178ac40dba
commit
3e9095a873
5 changed files with 42 additions and 52 deletions
17
tests/e2e/testdata/ls-out-json.golden
vendored
17
tests/e2e/testdata/ls-out-json.golden
vendored
|
|
@ -1,16 +1 @@
|
|||
[
|
||||
{
|
||||
"Name": "default",
|
||||
"Metadata": {
|
||||
"Description": "Current DOCKER_HOST based configuration",
|
||||
"StackOrchestrator": "swarm",
|
||||
"Type": "moby"
|
||||
},
|
||||
"Endpoints": {
|
||||
"docker": {
|
||||
"Host": "unix:///var/run/docker.sock"
|
||||
},
|
||||
"kubernetes": {}
|
||||
}
|
||||
}
|
||||
]
|
||||
{"Current":true,"Description":"Current DOCKER_HOST based configuration","DockerEndpoint":"unix:///var/run/docker.sock","KubernetesEndpoint":"","Type":"moby","Name":"default","StackOrchestrator":"swarm"}
|
||||
|
|
|
|||
22
tests/e2e/testdata/ps-out-example-json.golden
vendored
22
tests/e2e/testdata/ps-out-example-json.golden
vendored
|
|
@ -1,30 +1,16 @@
|
|||
[
|
||||
{
|
||||
"ID": "id",
|
||||
"Status": "",
|
||||
"Image": "nginx",
|
||||
"Status": "",
|
||||
"Command": "",
|
||||
"CPUTime": 0,
|
||||
"CPULimit": 0,
|
||||
"MemoryUsage": 0,
|
||||
"MemoryLimit": 0,
|
||||
"PidsCurrent": 0,
|
||||
"PidsLimit": 0,
|
||||
"Platform": "",
|
||||
"RestartPolicyCondition": ""
|
||||
"Ports": []
|
||||
},
|
||||
{
|
||||
"ID": "1234",
|
||||
"Status": "",
|
||||
"Image": "alpine",
|
||||
"Status": "",
|
||||
"Command": "",
|
||||
"CPUTime": 0,
|
||||
"CPULimit": 0,
|
||||
"MemoryUsage": 0,
|
||||
"MemoryLimit": 0,
|
||||
"PidsCurrent": 0,
|
||||
"PidsLimit": 0,
|
||||
"Platform": "",
|
||||
"RestartPolicyCondition": ""
|
||||
"Ports": []
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue