implement kpod rename

rename a container

Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
Ryan Cole 2017-08-14 13:30:24 -04:00
parent a69631c1bd
commit 1eb21f8e15
9 changed files with 261 additions and 1 deletions

View file

@ -160,6 +160,11 @@ func (c *Container) Sandbox() string {
return c.sandbox
}
// Dir returns the the dir of the container
func (c *Container) Dir() string {
return c.dir
}
// NetNsPath returns the path to the network namespace of the container.
func (c *Container) NetNsPath() (string, error) {
if c.state == nil {