diff --git a/cli/update.go b/cli/update.go index fbb718f62..71b2dfbdd 100644 --- a/cli/update.go +++ b/cli/update.go @@ -132,6 +132,10 @@ other options are ignored. } containerID := context.Args().First() + + kataLog = kataLog.WithField("container", containerID) + setExternalLoggers(kataLog) + status, sandboxID, err := getExistingContainerInfo(containerID) if err != nil { return err @@ -144,6 +148,8 @@ other options are ignored. "sandbox": sandboxID, }) + setExternalLoggers(kataLog) + // container MUST be running if status.State.State != vc.StateRunning { return fmt.Errorf("Container %s is not running", containerID)