Updated as per review comments by moving to caller
Signed-off-by: rajasec <rajasec79@gmail.com> Changing to container ID as per comments Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
parent
fb53190389
commit
9adc142404
|
@ -37,13 +37,12 @@ information is displayed once every 5 seconds.`,
|
|||
if err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
id := context.Args().First()
|
||||
status, err := container.Status()
|
||||
if err != nil {
|
||||
fatal(err)
|
||||
}
|
||||
if status == libcontainer.Destroyed {
|
||||
fatalf("container with id %s is not running",id)
|
||||
fatalf("container with id %s is not running", container.ID())
|
||||
}
|
||||
var (
|
||||
stats = make(chan *libcontainer.Stats, 1)
|
||||
|
|
Loading…
Reference in New Issue