Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

All the elements in docker app inspect command should be sorted #525

Closed
silvin-lubecki opened this issue Apr 28, 2019 · 1 comment
Closed

Comments

@silvin-lubecki
Copy link
Contributor

Description
Running docker app inspect twice on the same package won't reproduce the same output:

$ docker app inspect
...
Services (5) Replicas Ports Image
------------ -------- ----- -----
db           1              postgres:9.4
results      1        5001  mikesir87/examplevotingapp_result
vote         2        5000  mikesir87/examplevotingapp_vote
redis        1              redis:alpine
worker       1              dockersamples/examplevotingapp_worker

Networks (2)
------------
backend
frontend

$ docker app inspect
...
Services (5) Replicas Ports Image
------------ -------- ----- -----
vote         2        5000  mikesir87/examplevotingapp_vote
redis        1              redis:alpine
worker       1              dockersamples/examplevotingapp_worker
db           1              postgres:9.4
results      1        5001  mikesir87/examplevotingapp_result

Networks (2)
------------
frontend
backend

Output of docker-app version:

v0.8.0-beta2

@ijc
Copy link
Contributor

ijc commented Apr 29, 2019

Networks etc are maps, so the randomness is explainable, but services is type Services []ServiceConfig, so I'm not sure how/why it is randomised. Nonetheless sorting it is easy...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants