diff --git a/cmd/kpod/run.go b/cmd/kpod/run.go index 87ff2d0351..35e2d0be77 100644 --- a/cmd/kpod/run.go +++ b/cmd/kpod/run.go @@ -83,7 +83,7 @@ func runCmd(c *cli.Context) error { } logrus.Debug("new container created ", ctr.ID()) - if err := ctr.Create(); err != nil { + if err := ctr.Init(); err != nil { return err } logrus.Debug("container storage created for %q", ctr.ID()) diff --git a/libpod/container.go b/libpod/container.go index c8a09fe9ed..ffc4c63145 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -246,8 +246,8 @@ func (c *Container) teardownStorage() error { return nil } -// Create creates a container in the OCI runtime -func (c *Container) Create() (err error) { +// Init creates a container in the OCI runtime +func (c *Container) Init() (err error) { c.lock.Lock() defer c.lock.Unlock()