Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dockerImages() added
  • Loading branch information
sebhildebrandt committed Feb 24, 2021
1 parent 0df76f0 commit ac7f840
Show file tree
Hide file tree
Showing 11 changed files with 578 additions and 101 deletions.
83 changes: 42 additions & 41 deletions CHANGELOG.md
Expand Up @@ -72,47 +72,48 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.

| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.3.5 | 2020-02-23 | `dockerContainerStats()` fixed parameter * |
| 5.3.4 | 2020-02-20 | `sanitizeShellString()` optimized strict sanitation |
| 5.3.3 | 2020-02-15 | `dockerContainerStats()` fixed ID splitting |
| 5.3.2 | 2020-02-15 | `inetLatency()` `ineChecksite()` fixed possible security issue (file://) |
| 5.3.1 | 2020-02-14 | `inetLatency()` `ineChecksite()` `servcices()` `processes()` fixed possible security issue (arrays) |
| 5.3.0 | 2020-02-12 | `osInfo()` added remoteSession (windows) |
| 5.2.7 | 2020-02-12 | `fsStats()`, `blockDevices()` improved linux |
| 5.2.6 | 2020-02-12 | `inetLatency()` fixed possible DOS intrusion |
| 5.2.5 | 2020-02-11 | `processes()` fixed truncated params (linux) |
| 5.2.4 | 2020-02-11 | `currentLoad()` fixed issue |
| 5.2.3 | 2020-02-11 | `diskLayout()` added USB drives (mac OS) |
| 5.2.2 | 2020-02-11 | code cleanup, updated docs |
| 5.2.1 | 2020-02-10 | `system()` fixed issue virtual detect (linux) |
| 5.2.0 | 2020-02-10 | `wifiInterfces()` and `wifiConnections()` added |
| 5.1.2 | 2020-02-08 | fixed node 4 compatibility issue |
| 5.1.1 | 2020-02-08 | `baseboard()` added memMax, memSlots, smaller improvements Raspberry |
| 5.1.0 | 2020-02-08 | `memLayout()` added ECC flag, `bios()` added language, features (linux) |
| 5.0.11 | 2020-02-07 | `fsSize()` fixed windows WSL issue |
| 5.0.10 | 2020-02-06 | `getDynamicData()` fixed windows WSL issue |
| 5.0.9 | 2020-02-02 | `fsSize()` fixed parsing edge case issue mac OS |
| 5.0.8 | 2020-01-30 | typescript typings fix cpuCurrentSpeed |
| 5.0.7 | 2020-01-29 | `fsSize()` available fixed windows and typescript typings |
| 5.0.6 | 2020-01-28 | `osinfo()` added hypervisor (win only) |
| 5.0.5 | 2020-01-27 | `networkInterfaces()` type detection improved (win) |
| 5.0.4 | 2020-01-27 | `cpu()` improved manufacturer decoding (linux) |
| 5.0.3 | 2020-01-27 | `cpu()` fix virtualization, `wifi()` fix raspberry |
| 5.0.2 | 2020-01-26 | updated typescript typings |
| 5.0.1 | 2020-01-26 | code cleanup |
| 5.0.0 | 2020-01-26 | new major version 5 release |
| 4.34.9 | 2020-01-25 | `graphics()` virtual controller vram value fix (win) |
| 4.34.8 | 2020-01-25 | `graphics()` controller subDeviceId fix (win) |
| 4.34.7 | 2020-01-13 | `services()` improved service discovery (linux) |
| 4.34.6 | 2020-01-12 | `networkInterfaces()` catch errors |
| 4.34.5 | 2020-01-07 | `networkInterfaceDefault()` fixed CMD popup (windows) |
| 4.34.4 | 2020-01-06 | `system()` fixed vitrual catch error |
| 4.34.3 | 2020-01-06 | `graphics()` fixed non nvidia-smi controllers (win) |
| 4.34.2 | 2020-01-05 | `system()` uuid lowercase as in uuid() |
| 4.34.1 | 2020-01-05 | `graphics()` nvidia-smi detection improved |
| 4.34.0 | 2020-01-05 | `system()` added flag virtual |
| 4.33.8 | 2020-01-04 | `virtualBox()` fix issue windows host |
| 4.33.7 | 2020-01-04 | `graphics()` nvidia-smi detection improved |
| 5.4.0 | 2021-02-24 | `dockerImages()` added |
| 5.3.5 | 2021-02-23 | `dockerContainerStats()` fixed parameter * |
| 5.3.4 | 2021-02-20 | `sanitizeShellString()` optimized strict sanitation |
| 5.3.3 | 2021-02-15 | `dockerContainerStats()` fixed ID splitting |
| 5.3.2 | 2021-02-15 | `inetLatency()` `ineChecksite()` fixed possible security issue (file://) |
| 5.3.1 | 2021-02-14 | `inetLatency()` `ineChecksite()` `servcices()` `processes()` fixed possible security issue (arrays) |
| 5.3.0 | 2021-02-12 | `osInfo()` added remoteSession (windows) |
| 5.2.7 | 2021-02-12 | `fsStats()`, `blockDevices()` improved linux |
| 5.2.6 | 2021-02-12 | `inetLatency()` fixed possible DOS intrusion |
| 5.2.5 | 2021-02-11 | `processes()` fixed truncated params (linux) |
| 5.2.4 | 2021-02-11 | `currentLoad()` fixed issue |
| 5.2.3 | 2021-02-11 | `diskLayout()` added USB drives (mac OS) |
| 5.2.2 | 2021-02-11 | code cleanup, updated docs |
| 5.2.1 | 2021-02-10 | `system()` fixed issue virtual detect (linux) |
| 5.2.0 | 2021-02-10 | `wifiInterfces()` and `wifiConnections()` added |
| 5.1.2 | 2021-02-08 | fixed node 4 compatibility issue |
| 5.1.1 | 2021-02-08 | `baseboard()` added memMax, memSlots, smaller improvements Raspberry |
| 5.1.0 | 2021-02-08 | `memLayout()` added ECC flag, `bios()` added language, features (linux) |
| 5.0.11 | 2021-02-07 | `fsSize()` fixed windows WSL issue |
| 5.0.10 | 2021-02-06 | `getDynamicData()` fixed windows WSL issue |
| 5.0.9 | 2021-02-02 | `fsSize()` fixed parsing edge case issue mac OS |
| 5.0.8 | 2021-01-30 | typescript typings fix cpuCurrentSpeed |
| 5.0.7 | 2021-01-29 | `fsSize()` available fixed windows and typescript typings |
| 5.0.6 | 2021-01-28 | `osinfo()` added hypervisor (win only) |
| 5.0.5 | 2021-01-27 | `networkInterfaces()` type detection improved (win) |
| 5.0.4 | 2021-01-27 | `cpu()` improved manufacturer decoding (linux) |
| 5.0.3 | 2021-01-27 | `cpu()` fix virtualization, `wifi()` fix raspberry |
| 5.0.2 | 2021-01-26 | updated typescript typings |
| 5.0.1 | 2021-01-26 | code cleanup |
| 5.0.0 | 2021-01-26 | new major version 5 release |
| 4.34.9 | 2021-01-25 | `graphics()` virtual controller vram value fix (win) |
| 4.34.8 | 2021-01-25 | `graphics()` controller subDeviceId fix (win) |
| 4.34.7 | 2021-01-13 | `services()` improved service discovery (linux) |
| 4.34.6 | 2021-01-12 | `networkInterfaces()` catch errors |
| 4.34.5 | 2021-01-07 | `networkInterfaceDefault()` fixed CMD popup (windows) |
| 4.34.4 | 2021-01-06 | `system()` fixed vitrual catch error |
| 4.34.3 | 2021-01-06 | `graphics()` fixed non nvidia-smi controllers (win) |
| 4.34.2 | 2021-01-05 | `system()` uuid lowercase as in uuid() |
| 4.34.1 | 2021-01-05 | `graphics()` nvidia-smi detection improved |
| 4.34.0 | 2021-01-05 | `system()` added flag virtual |
| 4.33.8 | 2021-01-04 | `virtualBox()` fix issue windows host |
| 4.33.7 | 2021-01-04 | `graphics()` nvidia-smi detection improved |
| 4.33.6 | 2021-01-02 | `dockerContainerStats()` fix `tx` changed to `wx` as documented |
| 4.33.5 | 2020-12-30 | `graphics()` vram (nvidia-smi) |
| 4.33.4 | 2020-12-28 | `typescript` typings fix |
Expand Down
21 changes: 21 additions & 0 deletions README.md
Expand Up @@ -40,6 +40,7 @@ This next major version release 5.0 comes with new functionality and several imp

- added audio: get detailed audio device information
- added bluetooth: get detailed bluetooth device information
- added dockerImages: get detailed information about docker images
- added printer: get information from detected printers
- added usb: get detailed usb controller and device information
- added wifi interfaces ans connections: extended wifi information
Expand Down Expand Up @@ -102,6 +103,7 @@ si.cpu()

(last 7 major and minor version releases)

- Version 5.4.0: `dockerImages()` added
- Version 5.3.0: `osInfo()` added remoteSession (win only)
- Version 5.2.0: `wifiInterfaces()` and `wifiConnections()` added
- Version 5.1.0: `memLayout()` added ECC flag, `bios()` added language, features (linux)
Expand Down Expand Up @@ -668,6 +670,25 @@ Full function reference with examples can be found at [https://systeminformation
| | isolation | X | X | X | X | X | isolation |
| | initBinary | X | X | X | X | X | init binary |
| | productLicense | X | X | X | X | X | product license |
| si.dockerImages(all, cb) | [{...}] | X | X | X | X | X | returns array of top level/all docker images |
| | [0].id | X | X | X | X | X | image ID |
| | [0].container | X | X | X | X | X | container ID |
| | [0].comment | X | X | X | X | X | comment |
| | [0].os | X | X | X | X | X | OS |
| | [0].architecture | X | X | X | X | X | architecture |
| | [0].parent | X | X | X | X | X | parent ID |
| | [0].dockerVersion | X | X | X | X | X | docker version |
| | [0].size | X | X | X | X | X | image size |
| | [0].sharedSize | X | X | X | X | X | shared size |
| | [0].virtualSize | X | X | X | X | X | virtual size |
| | [0].author | X | X | X | X | X | author |
| | [0].created | X | X | X | X | X | created date / time |
| | [0].containerConfig | X | X | X | X | X | container config object |
| | [0].graphDriver | X | X | X | X | X | graph driver object |
| | [0].repoDigests | X | X | X | X | X | repo digests array |
| | [0].repoTags | X | X | X | X | X | repo tags array |
| | [0].config | X | X | X | X | X | config object |
| | [0].rootFS | X | X | X | X | X | root fs object |
| si.dockerContainers(all, cb) | [{...}] | X | X | X | X | X | returns array of active/all docker containers |
| | [0].id | X | X | X | X | X | ID of container |
| | [0].name | X | X | X | X | X | name of container |
Expand Down
192 changes: 191 additions & 1 deletion docs/docker.html
Expand Up @@ -47,7 +47,7 @@
<div class="col-12 sectionheader">
<div class="title">Docker</div>
<div class="text">
<p>In this section you will learn how to get information about docker containers, stats and processes inside a docker container:</p>
<p>In this section you will learn how to get information about docker, images, containers, container stats and processes inside a docker container:</p>
<p>For function reference and examples we assume, that we imported <span class="code">systeminformation</span> as follows:</p>
<pre><code class="js">const si = require('systeminformation');</code></pre>
<h2>Container, Stats, Processes</h2>
Expand Down Expand Up @@ -536,6 +536,196 @@ <h2>Container, Stats, Processes</h2>
<td>X</td>
<td>product license</td>
</tr>
<tr>
<td>si.dockerImages(all, cb)</td>
<td>[{...}]</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>returns array of top level/all docker images</td>
</tr>
<tr>
<td></td>
<td>[0].id</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>image ID</td>
</tr>
<tr>
<td></td>
<td>[0].container</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>container ID</td>
</tr>
<tr>
<td></td>
<td>[0].comment</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>comment</td>
</tr>
<tr>
<td></td>
<td>[0].os</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>OS</td>
</tr>
<tr>
<td></td>
<td>[0].architecture</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>architecture</td>
</tr>
<tr>
<td></td>
<td>[0].parent</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>parent ID</td>
</tr>
<tr>
<td></td>
<td>[0].dockerVersion</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>docker version</td>
</tr>
<tr>
<td></td>
<td>[0].size</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>image size</td>
</tr>
<tr>
<td></td>
<td>[0].sharedSize</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>shared size</td>
</tr>
<tr>
<td></td>
<td>[0].virtualSize</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>virtual size</td>
</tr>
<tr>
<td></td>
<td>[0].author</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>author</td>
</tr>
<tr>
<td></td>
<td>[0].created</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>created date / time</td>
</tr>
<tr>
<td></td>
<td>[0].containerConfig</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>container config object</td>
</tr>
<tr>
<td></td>
<td>[0].graphDriver</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>graph driver object</td>
</tr>
<tr>
<td></td>
<td>[0].repoDigests</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>repo digests array</td>
</tr>
<tr>
<td></td>
<td>[0].repoTags</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>repo tags array</td>
</tr>
<tr>
<td></td>
<td>[0].config</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>config object</td>
</tr>
<tr>
<td></td>
<td>[0].rootFS</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>X</td>
<td>root fs object</td>
</tr>
<tr>
<td>si.dockerContainers(all, cb)</td>
<td>[{...}]</td>
Expand Down

0 comments on commit ac7f840

Please sign in to comment.