mirror of
https://github.com/containers/podman.git
synced 2025-07-03 09:17:15 +08:00
Rename Create to Init for containers to be less confusing
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
This commit is contained in:
@ -83,7 +83,7 @@ func runCmd(c *cli.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logrus.Debug("new container created ", ctr.ID())
|
logrus.Debug("new container created ", ctr.ID())
|
||||||
if err := ctr.Create(); err != nil {
|
if err := ctr.Init(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
logrus.Debug("container storage created for %q", ctr.ID())
|
logrus.Debug("container storage created for %q", ctr.ID())
|
||||||
|
@ -246,8 +246,8 @@ func (c *Container) teardownStorage() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create creates a container in the OCI runtime
|
// Init creates a container in the OCI runtime
|
||||||
func (c *Container) Create() (err error) {
|
func (c *Container) Init() (err error) {
|
||||||
c.lock.Lock()
|
c.lock.Lock()
|
||||||
defer c.lock.Unlock()
|
defer c.lock.Unlock()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user