diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-09-30 16:07:08 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-10-01 11:17:15 -0700 |
commit | c67593df1240adbbd425642740f321c3ca9c6654 (patch) | |
tree | 7c727815f684a78f574ac6e641416dc78d8e5ec8 /pkg/domain/entities | |
parent | e9d8524af5122314e47385299bf9ae3d0b000096 (diff) | |
download | podman-c67593df1240adbbd425642740f321c3ca9c6654.tar.gz podman-c67593df1240adbbd425642740f321c3ca9c6654.tar.bz2 podman-c67593df1240adbbd425642740f321c3ca9c6654.zip |
[NO TESTS NEEDED] Ignore removed containers
* Ignore condition when containers are removed while listing them for
ps output.
No tests added at this time as they would create a race condition for
CI.
* Updated godocs
See https://github.com/containers/podman/issues/11810 for reproducer.
Fixes #11810
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/container_ps.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go index 7c255b0ea..58f231a2f 100644 --- a/pkg/domain/entities/container_ps.go +++ b/pkg/domain/entities/container_ps.go @@ -10,7 +10,7 @@ import ( "github.com/pkg/errors" ) -// Listcontainer describes a container suitable for listing +// ListContainer describes a container suitable for listing type ListContainer struct { // AutoRemove AutoRemove bool @@ -18,7 +18,7 @@ type ListContainer struct { Command []string // Container creation time Created time.Time - // Human readable container creation time. + // Human-readable container creation time. CreatedAt string // If container has exited/stopped Exited bool @@ -65,7 +65,7 @@ type ListContainer struct { Status string } -// ListContainer Namespaces contains the identifiers of the container's Linux namespaces +// ListContainerNamespaces contains the identifiers of the container's Linux namespaces type ListContainerNamespaces struct { // Mount namespace MNT string `json:"Mnt,omitempty"` |