From 945d0e8700d3e3ce14307f7d8e5b918dc13ec9e9 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 2 Jan 2019 12:11:50 -0500 Subject: Log container command before starting the container Runc does not produce helpful error messages when the container's command is not found, so print the command ourselves. Signed-off-by: Matthew Heon --- libpod/container_internal.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod/container_internal.go') diff --git a/libpod/container_internal.go b/libpod/container_internal.go index 928be52ae..6c027f59a 100644 --- a/libpod/container_internal.go +++ b/libpod/container_internal.go @@ -748,6 +748,10 @@ func (c *Container) initAndStart(ctx context.Context) (err error) { // Internal, non-locking function to start a container func (c *Container) start() error { + if c.config.Spec.Process != nil { + logrus.Debugf("Starting container %s with command %v", c.ID(), c.config.Spec.Process.Args) + } + if err := c.runtime.ociRuntime.startContainer(c); err != nil { return err } -- cgit v1.2.3-54-g00ecf