mirror of
https://github.com/containers/podman.git
synced 2025-09-10 12:32:21 +08:00
Export ConmonPidFile in 'podman inspect' for containers
This can help scripts provide a more meaningful message when coming across issues [1] which require the container to be re-created. [1] eg., https://github.com/containers/libpod/issues/2673 Signed-off-by: Debarshi Ray <rishi@fedoraproject.org>
This commit is contained in:
@ -66,6 +66,16 @@ var _ = Describe("Podman inspect", func() {
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman inspect container with GO format for ConmonPidFile", func() {
|
||||
SkipIfRemote()
|
||||
session, ec, _ := podmanTest.RunLsContainer("test1")
|
||||
Expect(ec).To(Equal(0))
|
||||
|
||||
session = podmanTest.Podman([]string{"inspect", "--format", "{{.ConmonPidFile}}", "test1"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman inspect container with size", func() {
|
||||
SkipIfRemote()
|
||||
_, ec, _ := podmanTest.RunLsContainer("")
|
||||
|
Reference in New Issue
Block a user