summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-01-02 12:11:50 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-01-02 12:11:50 -0500
commit945d0e8700d3e3ce14307f7d8e5b918dc13ec9e9 (patch)
treece053c45055dcb4eb3ae656e10dd49a6b28568a3
parent7438b7bd3afb9e5a0fc761fdc8532cd697f2187b (diff)
downloadpodman-945d0e8700d3e3ce14307f7d8e5b918dc13ec9e9.tar.gz
podman-945d0e8700d3e3ce14307f7d8e5b918dc13ec9e9.tar.bz2
podman-945d0e8700d3e3ce14307f7d8e5b918dc13ec9e9.zip
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 <matthew.heon@pm.me>
-rw-r--r--libpod/container_internal.go4
1 files changed, 4 insertions, 0 deletions
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
}