mirror of
https://github.com/rancher/os.git
synced 2025-09-01 06:40:31 +00:00
Add rancher user and lock root
This commit is contained in:
@@ -380,11 +380,16 @@ func (c *Container) start(wait bool) *Container {
|
||||
|
||||
if c.Exists() && c.remove {
|
||||
log.Debugf("Deleting container %s", c.Container.ID)
|
||||
c.Delete().Reset().Lookup()
|
||||
c.Delete()
|
||||
|
||||
if c.Err != nil {
|
||||
return c
|
||||
}
|
||||
|
||||
c.Reset().Lookup()
|
||||
if c.Err != nil {
|
||||
return c
|
||||
}
|
||||
}
|
||||
|
||||
if !c.Exists() {
|
||||
|
Reference in New Issue
Block a user