Set image on rootfs options

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-16 13:51:24 -07:00
parent d922f48735
commit 79631498af
4 changed files with 12 additions and 10 deletions

View File

@@ -154,6 +154,7 @@ func WithNewRootFS(id string, i Image) NewContainerOpts {
return err
}
c.RootFS = id
c.Image = i.Name()
return nil
}
}
@@ -170,6 +171,7 @@ func WithNewReadonlyRootFS(id string, i Image) NewContainerOpts {
return err
}
c.RootFS = id
c.Image = i.Name()
return nil
}
}