Merge pull request #2068 from mheon/log_container_command

Log container command before starting the container
This commit is contained in:
OpenShift Merge Robot 2019-01-02 10:56:49 -08:00 committed by GitHub
commit a634d5559f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}