threefoldtecharchive / zosctl

zero-os container manager for zero-os operating system
Other
2 stars 1 forks source link

show sorted containers by id on containers list #30

Closed xmonader closed 6 years ago

xmonader commented 6 years ago

on containers list show items ordered by id

xmonader commented 6 years ago

https://github.com/threefoldtech/zos/commit/b84f527a31867727e00ba0abb8ca150d12892787

Dina-Abd-Elrahman commented 6 years ago

Zos Version:

657e1fd2d96f7b81c331f39012e0dfa79e81a0a1

Verification steps:

./zos container list

[
  {
    "id": "1",
    "cpu": 0.01129665027567165,
    "root": "https://hub.grid.tf/tf-autobuilder/threefoldtech-0-robot-autostart-development.flist",
    "hostname": "",
    "pid": 500
  },
  {
    "id": "2",
    "cpu": 0.0,
    "root": "https://hub.grid.tf/tf-bootable/ubuntu:lts.flist",
    "hostname": "test",
    "pid": 725
  },
  {
    "id": "3",
    "cpu": 0.05648322263069784,
    "root": "https://hub.grid.tf/tf-autobuilder/threefoldtech-0-robot-autostart-development.flist",
    "hostname": "test1",
    "pid": 2422
  },
  {
    "id": "4",
    "cpu": 0.0,
    "root": "https://hub.grid.tf/tf-bootable/ubuntu:lts.flist",
    "hostname": "test2",
    "pid": 6066
  },
  {
    "id": "5",
    "cpu": 0.02259329211297796,
    "root": "https://hub.grid.tf/tf-bootable/ubuntu:lts.flist",
    "hostname": "test3",
    "pid": 7575
  }
]