mirror of
https://github.com/containers/podman
synced 2024-10-19 08:44:11 +00:00
Merge pull request #2068 from mheon/log_container_command
Log container command before starting the container
This commit is contained in:
commit
a634d5559f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue