spiegel_podman/pkg
Jake Correnti 96ccd6934b Non-running containers now report statistics via the podman stats
command

Previously, if a container was not running, and the user ran the `podman
stats` command, an error would be reported: `Error: container state
improper`.

Podman now reports stats as the fields' default values for their
respective type if the container is not running:

```
$ podman stats --no-stream demo

ID            NAME        CPU %       MEM USAGE / LIMIT  MEM %       NET IO      BLOCK IO    PIDS        CPU TIME    AVG CPU %
4b4bf8ce84ed  demo        0.00%       0B / 0B            0.00%       0B / 0B     0B / 0B     0           0s          0.00%
```

Closes: #14498

Signed-off-by: Jake Correnti <jcorrenti13@gmail.com>
2022-06-14 16:12:11 -04:00
..
annotations fix a number of godot issues 2022-03-22 13:04:35 +01:00
api Non-running containers now report statistics via the podman stats 2022-06-14 16:12:11 -04:00
auth Run codespell on code 2022-01-21 09:52:12 -05:00
autoupdate auto update: create an event 2022-06-14 13:50:03 -04:00
bindings Swagger refactor/cleanup 2022-06-14 13:48:20 -04:00
channel channel: simplify implementation 2021-05-06 11:51:15 +02:00
checkpoint Add support for checkpoint image 2022-04-20 18:55:39 +01:00
copy bump go module to version 4 2022-01-18 12:47:07 +01:00
criu Add support for checkpoint image 2022-04-20 18:55:39 +01:00
ctime go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
domain Pass '--file-locks' to OCI runtime at restoring 2022-06-14 16:12:10 -04:00
env Add more unit tests 2022-05-05 15:48:26 -04:00
errorhandling Swagger refactor/cleanup 2022-06-14 13:48:20 -04:00
hooks enable gocritic linter 2022-04-26 18:12:22 +02:00
inspect fix a number of godot issues 2022-03-22 13:04:35 +01:00
k8s.io linter: enable unconvert linter 2022-06-14 13:47:42 -04:00
kubeutils remove unneeded k8s code 2022-03-15 14:48:08 +01:00
lookup enable gocritic linter 2022-04-26 18:12:22 +02:00
machine Prevent simultaneous machine starts 2022-06-14 16:12:10 -04:00
namespaces enable gocritic linter 2022-04-26 18:12:22 +02:00
parallel bump go module to version 4 2022-01-18 12:47:07 +01:00
ps bump go module to version 4 2022-01-18 12:47:07 +01:00
resolvconf Revert "Move each search dns to its own line" 2022-02-02 19:33:21 +01:00
rootless remote: do not join user NS 2022-04-26 15:05:20 +02:00
rootlessport go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
seccomp Spelling 2020-12-22 13:34:31 -05:00
selinux Fix SELinux functions names to not be repetitive 2020-04-23 15:57:34 -04:00
servicereaper go fmt: use go 1.18 conditional-build syntax 2022-03-18 09:11:53 +01:00
signal Unit tests for pkg/specgenutil pkg/signal 2022-04-25 14:48:39 -05:00
specgen patch for pod host networking & other host namespace handling 2022-06-14 16:12:10 -04:00
specgenutil Podman no-new-privileges format 2022-06-14 14:35:36 -04:00
systemd enable gocritic linter 2022-04-26 18:12:22 +02:00
terminal move golang.org/x/crypto/ssh/terminal to golang.org/x/term 2022-04-22 12:40:52 +02:00
timetype enable gocritic linter 2022-04-26 18:12:22 +02:00
trust Cleanup display of trust with transports 2022-02-22 15:08:58 -05:00
util Use containers/common/pkg/util.StringToSlice 2022-06-14 14:25:33 -04:00