From 32af1be01a37362d81baff47a2bb28e4c863a8c9 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 23 Oct 2020 06:58:41 -0400 Subject: The cidfile should be created when the container is created Currently if you run an interactive session of podman run and specifiy the --cidfile option, the cidfile will not get created until the container finishes running. If you run a detached container, it will get created right away. This Patch creates the cidfile as soon as the container is created. This could allow other tools to use the cidefile on all running containers. Signed-off-by: Daniel J Walsh --- pkg/domain/entities/containers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/domain/entities') diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go index 46b169284..3fd7c79f4 100644 --- a/pkg/domain/entities/containers.go +++ b/pkg/domain/entities/containers.go @@ -294,6 +294,7 @@ type ContainerListOptions struct { // ContainerRunOptions describes the options needed // to run a container from the CLI type ContainerRunOptions struct { + CIDFile string Detach bool DetachKeys string ErrorStream *os.File -- cgit v1.2.3-54-g00ecf